WordPress Plugin: Search Term Tagging 1.0 Beta

I read this post on Blogging Pro about some needed WordPress plugins, as suggested by Chris Pirillo. As I was reading through them, I thought, “Damn, I could do that fourth one pretty easily.”

For reference, the fourth one was as follows:

What about a plugin that takes incoming search terms and auto-tags the post based on those terms (with or without moderation)? So, if a user searches for KeywordXYZ on Google and ultimately visits one of the blog entries, that blog entry will have the KeywordXYZ added to its tag list (via UTW or something).

And so I wrote it.

Presenting Search Term Tagging 1.0 (Beta, of course)

You may download the source here: https://17thdegree.com/wp/searchTermTagging.phps

I’ve only tested on my WordPress, version 2.0.2 (I know I need to upgrade), installation. No guarantees on anything working or breaking.


  1. Download Source (above)
  2. Activate the plugin
  3. Add this code to display it wherever you want it to be seen on your blog:
    /* Search Term Tagging Plugin */
    echo "<div id=\"searchTermTagging\">n";
    echo stt_terms_list();
    echo "</div>n";

Any questions, comment here. There isn’t a whole lot to it. So, what would you guys like added to it? Also, I’m not really tied to the name for this plugin, any better ideas?

24 thoughts on “WordPress Plugin: Search Term Tagging 1.0 Beta

  1. Hi, I’m trying to use your plugin in my sidebar, but when it loads stops and WP says: “Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in wp-content/themes/doogate-maroon-200612/sidebar.php on line 48”, I’m using:
    echo stt_terms_list();
    echo “\n”;
    Can you please help me?


  2. I get a warning message:
    Warning: array_unique() [function.array-unique]: The argument should be an array in /home/username/public_html/wp-content/plugins/searchTermTagging.php on line 118

    How I fix this is by add this line inside php code in the plugin:


    Hope this helps.


  3. How can I make the search terms to link to its post permalink?

    Please help me out…

  4. Any updates to the new version of WordPress? It is not working in the 2.5x version?

    Thank you

  5. Hi,

    This plugin is great… but I´m in trouble.
    I can not set the number of search terms to appear.
    I think if so many terms appear in my page, I will be penalized by Google.

    Can you help me?

    Thank you.

  6. Hi

    I like your plugin but how to set maximum query on single page 40 character text? Like set table.Please help me because to much query text result on my blog.

  7. […] Plugin Search Term Tagging memang sangat membantu kita agar lebih mengoptimalkan SEO “Search Engine Optimization”. fungsi dari plugin ini adalah untuk menjaring keyword-keyword dari para pengunjung. jadi setiap visitor yang mampir ke web / blog anda dengan keyword tertentu misal “Download Plugin Search term tagging” maka kata tersebut akan muncul dimana anda meletakannya. caranya… […]

  8. Thanks for this plugin. I am using it successfully. But it has a lack of configuration option, such as how can I show search term horizontally not vertically?

Leave a Reply

Your email address will not be published. Required fields are marked *