Wordpress Plugin: Search Engine Keywords

Features

  • Display to the visitor coming from search engines a message based upon what they’re searching for

Introduction

I created a Wordpress plugin released under the GNU GPL Licence that can be used to correlate the keywords used to find your page on the search engines to a box where you can put anything you want, for example your affiliate marketing links, a link to something you want your visitor to read, or a “hello” to the visitor.

We all know from our site stats what our visitors are searching for on our site. Sometimes they come looking for something that isn’t there. So, you can leave them a personalized message.

Otherwise, you may be looking for ways to monetize your site: this plugin is fantastic for this, because it gives you the opportunity to display some tematic links (quite in a Adsense way, but you control it). You can send affiliate marketing links to the visitor interested in them.

This is my first Wordpress plugin, so any suggestion is welcome. Please leave a comment this page if you find it useful.

How does it work?

It doesn’t address a single page, but all the pages that are listed in the search engine SERPs for that particular key.

Thanks to the functions written by Thomas Silkjær in his Landing Sites WP plugin, the plugin finds out what keyword the visitor typed in the search engine form to get to the site.

In the administrator panel, you can set the keywords to search for, and the message you want to display, written in XHTML. You can then style it as you want using your CSS file, adding some selectors for the div #copesSearchEngineKeywordPlugin.

Wordpress Plugin administrator panel

Wordpress Plugin administrator panel

How to install

Download the Search Engine Keywords Wordpress Plugin

Download the plugin, then unarchive it and install it by uploading the CopesSearchEngineKeywordPlugin directory to your Wordpress installation, in the wp-content/plugins directory.

Then activate it from the administrator panel Plugins.

In order to get this plugin to work, you have to put these lines in your template, wherever you want your message to appear. To give it a great visibility, I suggest to put it at the end of the header.php file, so that the message will be displayed before the post.

<div id="copesSearchEngineKeywordPlugin">
<?php if (class_exists("CopesSearchEngineKeywordsPlugin")) {
$copesSEK = new CopesSearchEngineKeywordsPlugin();
echo $copesSEK->addContent();
}
?>
</div>

Hope you like it!

Download the Search Engine Keywords Wordpress Plugin

Changelog

2008-08-28 Plugin hosted by WordPress.org

2008-08-23 Version 1.1: Fixed an issue that prevented from inserting links in the text, escaping them.

2008-02-20 Version 1.0: Stable Release

Tags: , , , ,

26 Responses to “Wordpress Plugin: Search Engine Keywords”

  1. Rui Cruz Says:

    We have to add each keyword. Damn, I’ve so many.

    Next time add a funtion to display the same message for all keywords.
    With %vars like %google %yahoo %url %blogname, etc.

    Rui

  2. Copes Flavio Says:

    This is not what the plugin is meant to be, but thanks for the hint.
    If you want to display the same message for all the keywords, use the Landing Sites plugin (you can find the link in the above post). Just put in your template the lines

    < ?php if (ls_getinfo(‘isref’)) { ?>

    Message

    < ?php } ?>

  3. Dan (future gadgets blog) Says:

    I like your blog theme. I want to use it on my blog.
    Can you please tell me from where I can download these theme?

    Many thanks

    ——————————————————————————–
    Dan owner of the future gadgets blog future gadgets and inventions

  4. Copes Flavio Says:

    Hi Dan, this is a theme I designed from scratch, i’m sorry but it’s not publicly available.

    I’m happy you like it ;-)

  5. Mieszkania Poznan Says:

    Will it not ban you from adsense? You use script to change content to adjust ads on your site. I’d rather ask guys from adsense if it’s ok.

  6. Copes Flavio Says:

    Hi, I don’t know the policy of adsense, since I don’t use it. Affiliate marketing is a different thing.
    Adsense itself changes the content to adjust ads based on the content of the page, why wouldn’t it be ok to do it?

  7. Mieszkania Poznan Says:

    Because you adjust page dynamically to the viewer. I don’t know the exact policy of adsense but my friend was banned for displaying content based on keywords searched.

    I’ve to admit that I didn’t have time to use your plugin (will do tomorrow) and can’t tell more but the idea is very good.

  8. Copes Flavio Says:

    In that case, if you use adsense it’s better not to use this plugin.

    Thanks for your appreciation ;-)

  9. Janet Says:

    Interesting! I’m really helped. It’s really smart idea. Do you know you can make your blog more popular? maybe I can help you, you may contact me at anytime you want.

    Cheers

  10. Emarketscout Says:

    Hi,

    i must admit that i’ver never seen it this way.

    But to succeed with making money online, i ‘d strongly advice that you get yourself a treasure map - a roadmap to Affiliate success …*-)

    Michael

  11. Franca Richard Says:

    I wanna have a try, thanks for ur contribution!

  12.   Wordpress Plugin: Search Engine Keywords (Automated Linking) by Automated Linking Review Says:

    [...] Wordpress Plugin: Search Engine Keywords Features. Display to the visitor coming from search engines a message based upon what they re searching for; Introduction. I created a Wordpress plugin released under the GNU GPL [...]

  13. Rick Says:

    The plugin sounded cool until I saw that you had to add keywords manually. What’s the point of that? Why can’t u just use something like to display the keywords that were used to find your site? It would make it alot easier rather than adding keywords manually. So you could use a line something like this:

    You found this page by searching for “”.

    I think that would make alot more sense..

  14. Rick Says:

    Oops forgot to space php tags in previous comment..

    The plugin sounded cool until I saw that you had to add keywords manually. What’s the point of that? Why can’t u just use something like to display the keywords that were used to find your site? It would make it alot easier rather than adding keywords manually. So you could use a line something like this:

    You found this page by searching for “”.

    I think that would make alot more sense..

  15. Rick Says:

    Bah still didn’t work, the line should be something like:

    ? php search_keywords(); ?

    nice and simple

  16. Copes Flavio Says:

    That’s not what the plugin is meant to be. You’re looking for a feature that is well provided by the Landing Sites plugin I talk about in the post. :)

    This is meant to be a plugin that you can use to display something when a certain keyword (or keywords) is used to find that page.

  17. tonia Says:

    Thanks for the info…Ill make sure to look into that more!

  18. Vulvodynia Says:

    What a great plugin! Thank you!

    May I only request one bug-fix/feature?
    When I enter ” in the XHTML code form it gets translated to \”

    So effectively I cannot add any links… :(

  19. Leonaut.com Says:

    Search Engine Keywords…

    Display to the visitor coming from search engines a message based upon what they’re searching for….

  20. avtorentacar Says:

    Good plugin. Thank you.

  21. R. Richard Hobbs Says:

    most of my own feature requests have been addressed above - I couldn’t get Landing Sites to work in WP 2.6 myself - thx

  22. Martin Says:

    hi,
    thanks.

  23. WordPress Plugins » BEE BLOG Says:

    [...] Search Engine Keywords: Display to the visitor coming from search engines a message based upon what they’re searching [...]

  24. Ferri Says:

    Hey Copes,

    I’m not understand how to use this plugin.
    I was Actived the plugin and I was place code :

    addContent();
    }
    ?>

    into my bottom of header.php but I don’t look some keyword display from that’s plugin.. What matter of this???

    How about if my visitor come from Google indonesia or Google.co.id and input some keyword in google.co.id search engine and find my website and him click my url link website.

    Doesn’t the plugin display the keyword of google.co.id visitor type text in search engine form into my website page…??

    Please hope… and Thanks Before…

    Ferri

  25. Ferri Says:

    oh ya and my wordpress is version 2.6..
    and i don’t look landing site in my page like R. Richard Hobbs comments..

  26. Will Castillo Says:

    Hello,

    Excellent idea. Thanks for sharing!

    I would like to suggest a couple things to make it, hopefully, better:
    1) General improvement for the admin section: More user-friendly.
    2) Easier way to add keywords (less clicks, please!)
    3) If I put code into a new keyword, and I click on ADD A NEW KEYWORD, it added the new blank space for the new keyword… but the previously updated/created loses its changes (did it makes sense?). I would expect it to FIRST update the code entered and THEN create a new blank space for a new keyword.
    4) Adding AJAX would make it far more usable
    5) I know it was not intended to be use that way but it would be great if we have a %KEYWORD% variable available to be included in the code.

    Thanks all for now!!! Once again… It’s a EXTREMELLY helpful plugin.

    Two Thumbs Up!

    All Best,
    Will

Leave a Reply

Name (obbligatorio)

Mail (will not be published) (obbligatoria)

Website