Get Random Search Terms Plugin

I’m always interested to know how people found this site and I enjoy reading some of the search terms that land people here. A few weeks ago I wrote a very basic script that pulls search terms from my database and displays 10 random terms for the user. I decided to go ahead and make this a plugin.

Feel free to download it for use on your site.

Details: This plugin simply pulls 10 random search phrases from the wp-stattraq table in your database. The search terms will change with every page load. The search terms link to google’s search of that phrase.

Instructions:
1. Download and install the StatTraq plugin from Randy Peterman (If you already have it installed, skit to Step 2.
2. Rename get-random-search-terms.php.txt to get-random-search-terms.php.
3. Upload the get-random-search-terms.php to your wordpress plugin directory: wordpress_root/wp-content/plugins
4. Activate the plugin from the wp-admin menu.
5. Decide where on your page you want to place the random search terms and then call the function: get_search_terms()
6. To style the search terms, modify styling information for the class called: search_terms

Usage:
To use, add the following to your sidebar menu or place of your choice:

get_search_terms();

Like this post: TechnoratiStumbleUponBookmark: Del.icio.usDigg
RSS feed for comments on this post
 |  TrackBack URI for this post

18 Responses to “Get Random Search Terms Plugin”

  1. Joy says:

    Nice blog hooker. You’re such a geek. It makes my eyes hurt.

    How many days left??

  2. Brian says:

    Can this plugin be used to boost Web-engine searchablity?
    http://www.TechRd.com

  3. Sara says:

    Joy, you need to try this out. I know you have StatTraq installed. :)

    Brian, this could be used I guess although the effect would be minimal. Thanks for stopping by.

  4. Ellen says:

    Wow nice! I wish I could be a geek. I found this place from Creative Coast.org

  5. robbiecoutts.com » Blog Archive » Holidays are great - back to the real world. says:

    [...] Speaking of revenue - it seems that Natalie Bassingthwaighte has quite a few fans! My Visits and Pageviews have increased significantly since adding a Natalie Bassingthwaighte Gallery to the site. She seems quite popular! Also thanks to Sara’s Random Search Term Generator which helps as well. But it’s actually quite amusing how so many people spell her name wrong - Natalie Bassingthwaite! Ah well. [...]

  6. Cheyne says:

    This is pretty cool, I love reading all of my odd search terms.

  7. sarathy says:

    Hi, I installed it in http://www.indianjobs.in . I get an Invalid argument supplied error, What might be the reason :)

    Thanks for the plugin

  8. Ash says:

    Sarathy, same here. Could be that we are using WP 2.0.

  9. Sara says:

    sarathy and Ash, I’ll take a look at it when i get a chance. I’ll send you an email shortly. Thanks for letting me know :)

  10. sarathy says:

    Hey ash, its because i dint install the stattraq plugin. Now Its working in our site properly :)

    Hey sara, Thanks a lot :).,

    Its a wonderful script

  11. Xnxx says:

    Are you still working on this plugin?
    I get this error when I activate it :(
    I am running Wordpress 1.5.1.2
    What am I doing wrong?
    Help me please!

  12. ilovecode » 1 Year Blog Anniversary says:

    [...] Get Random Search Terms Plugin was a cool post for me. I made a little script for myself, but then i turned it into a plugin and i have seen many people use it. That’s pretty cool when other people can find use out of something you made for yourself! [...]

  13. alex says:

    sara,

    i am using the latest wp (ver 2.0.4)

    i installed this plugin on http://veganmall.info
    but keep getting this error

    Warning: Invalid argument supplied for foreach() in /home/veganmal/public_html/wp-content/plugins/get-random-search-terms.php on line 49

    cheers,

  14. Sara says:

    Xnxx — I completely missed your comment, I’m sorry!

    Alex and Xnxx - I am supposed to get Internet installed today in my new house and once that happens I will be able to look at your problems and try to help troubleshoot them.

  15. Publisher-Heaven » Blog Archive » WP-Stattraq Plugin for Wordpress + addons says:

    [...] Another usefull plugin that can be used with WP-Stattraq is “Get Random Search Terms” for WordPress. Autor : Sara Smith Plugin Site : CLICK HERE [...]

  16. WordPress New Plugins & Themes » Blog Archive » WP-Stattraq Plugin for Wordpress + addons says:

    [...] Plugin Site : CLICK HERE [...]

  17. ぱそずき :D)‐く » Blog Archive » [WordPress][Plugins] Get Random Search Terms 日本語版 says:

    [...] Sara Smith さんの Get Random Search Terms Plugin ã‚’ä½¿ç”¨ã™ã‚‹ã®ã§ã™ãŒã€ãã®ã¾ã¾ã§ã¯æ—¥æœ¬èªžã«å¯¾å¿œã—ã¦ã„ãªã„ã®ã§å°‘ã—ã‚³ãƒ¼ãƒ‰ã«å¤‰æ›´ã‚’åŠ ãˆã¾ã—ãŸã€‚ [...]

  18. ilovecode » Ask Me Plugin Finally Released - in need of nitpicking b… i mean testers. says:

    [...] It is pretty neat and i think it gives readers an interesting perspective into my personality that they wouldn’t see in my posts. Over the months though, I continuously had people asking me for a copy of it. I decided I should make it a plugin because i didn’t know of any like it out there. I finally did. My good friend Jelena wanted to start her blog last month and she wanted a copy too. All according to my evil plan, i talked her into helping me finish it. I remember when I told her the functionality I had left to do on it and she said.. oh 2-3 hours tops. We’ve spent well over 80 hours since then and finally have something that is hopefully worth to put out. That probably seems likes an astronomical amount of time but it really is a PITA to make it work just by dragging and dropping a file into your plugin directory. I have a new found respect for plugin authors. My last plugin was a breeze to make but the functionality was also very limited and didn’t require any interaction with the admin panel. [...]

Leave a Reply