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: http://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.

Instructions:

  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:
    <?php
    /* 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?

8 Responses to “WordPress Plugin: Search Term Tagging 1.0 Beta”

  1. Pande Says:

    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:
    \nā€;
    echo stt_terms_list();
    echo ā€œ\nā€;
    ?>
    Can you please help me?

    Thanks

  2. hi my name is sid » Wordpress : Add Search Terms To UTW Tags Plugin Says:

    […] i found one : Search Term Tagging Only Problem is it makes the tags in it’s own tag system. Well of course i, see a need - fix […]

  3. Greg Sidberry Says:

    i updated your plugin to use utw http://elsid.net/2007/05/16/wordpress-add-search-terms-to-utw-tags-plugin/

  4. Ronnie Says:

    Pande - it’s better if you put on the single.php above the permalink

  5. Rahmat Says:

    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:

    error_reporting(0);

    Hope this helps.

    Thanks

  6. Menghilangkan Pesan Warning Dari Plugin Search Term Tagging - dhikapahridas.com Says:

    […] pengguna plugin “Search Term Tagging” ? Plugin ini kerjanya mirip dengan bstat, hanya saja lebih ringan untuk dijalankan (tapi […]

  7. Ron Says:

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

    Please help me out…

  8. Tacio Almaraz Says:

    Hope it works with 2.5

Drop Some Knowledge On Us…