WordPress plugin: metakeywords

filled under:
May 7, 2006 

I needed a very simple plugin to add some keywords and so I wrote it.

The name is “metakeywords”, because that’s it, what it does: adding the meta tag “keywords” to your post/page/home. You can define some general default values within the plugin and for each individual post you can add some extra keywords. It works very well with WP 2.0 and it simply consists of just a very few lines of code.

UPDATE:

WP has changed a little bit, so the plugin needed some update. The problem was that something has changed with the $post_meta_cache array but I couldn’t find any explanation »why«. However, I’ve updated also the »step by step« description, because some people still had some problems (I hope this one is better).

HowTo:

  1. Download the Plugin right here
  2. Extract the metakeywords.php somewhere
  3. Edit $default_keywords and $extra_home_keywords with a progam like ie: Notepad, Komodo, Maguma, proton, etc…
  4. Upload it to your WP plugin dir.
  5. First time users only: Login into your Blog, then go to »Plugins« and activate it.
  6. Go to your post, where you would like to add some keywords and scroll down to the »Custom Fields«. Add a new »Key« named »metakeywords« and write into the »Value« Textfield your Keywords (seperated by commas)
  7. Click on »Add Custom Field« and that’s it.

Ay and before I forget it:
$default_keywords are the key keywords which will always be present and all pages
$extra_home_keywords appear only on the main page, where the newest posts are listed

And:
If you still have problems, please post em.
Thank you;)

tags:

Leave a Reply

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

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  1. Jill ( August 24, 2006 at 11:22 pm )

    What do you mean “Add an optional field named ââ?¬Å?metakeywordsââ?¬?”? Is that the “Custom Fields” when you’re making a post?

  2. biophonc ( August 25, 2006 at 7:11 am )

    Yep, that’s right. :)

  3. Pingback: Bin neu hier lerne das Bloggen! » Metakeywords einbinden auf Wordpress

  4. Pingback: Rangel - » Lista de plugins Wordpress Otimizada e Comentanda

  5. Kay ( March 5, 2007 at 1:37 am )

    Hi everybody,

    great tool, theoretically. The documentation is a little bit poor, isn’t it? I still don’t know how to set the metatags. Which menue should I open? Manage? Options? Please help me. That plugin is just what I was looking for. You know otherwise the robots won’t find you.

    Yours,

    Kay

  6. biophonc ( March 6, 2007 at 10:21 pm )

    kay, there’s not much to do. Really ;)

    * Open up or write a post.
    * scroll down and there you’ll find a menu called “custom fields”.
    * There you’ll find the Text “Add a new custom field:” You can either use the dropdown menu, or type into the “key” field “metakeywords”.
    * besides the key field is an field named “Value”. Type into this field your keywords , seperated by comas.
    * Hit “Add Custom Field Ã?»” and you are done.

    I don’t know the field titles in any other language,… if you use a german, spanish, frensh,… language file, you may try to translate it by yourself – because I like to use the english version.

    I hope this helps anyway :)

  7. Dave ( March 13, 2007 at 12:13 am )

    I tried this plugin and it shows as another custom field entered, but when I look at the source code or do a Who is on the page I don’t see any Meta Tags? Souldn’t you see it in the source code for that page? Or at least the web site http://whois.domaintools.com offers some hints and it too shows no meta Tags. Any ideas?

    Oh and it dosen’t show up on the pulldown so I entered the name “metakeywords”

  8. biophonc ( March 13, 2007 at 9:17 am )

    Dave,
    yes, that’s true – you have to enter Ã?»metakeywordsÃ?« once but then it will appear as custom drop down. If you have made your own theme, you may insert the wp_head() method in your header.php. And this is no meta description plugin – only a keyword plugin.

    However, keywords doesn’t show up on whois lookups and nevel will ;)

    I’m not really sure what your problem is, so please provide me some more information and I’ll try to help you.

  9. Dave ( March 13, 2007 at 12:56 pm )

    Yes I see the metakeywords now in the drop down after using it once. I’m new at this so go slow for me. I thought keywords is a form of meta tags.

    Well the question I still pose to you would be: How do I know this is activated when I use the custom insert. It shows as a editable value once entered, but I never see it in the source code. I’m using the netfirm theme.

    Oh and thank you for you help.

  10. biophonc ( March 13, 2007 at 2:37 pm )

    you can see it it works, when you look into the page source. There should be meta tag called keywords. Your link seems to not fetch metakeywords, when something like scripts/sheets are before the meta tag. The plugin works very fine for me and some friends. The only thing is, as i mentioned above, if the wp_head() call is missing in the template.

  11. Strafverteidiger M�¼nchen ( April 20, 2007 at 10:59 pm )

    great tool, thanks a lot for it.

  12. Pauly ( April 24, 2007 at 2:49 pm )

    My keywords are showing up on the homepage but not on any of the posts. I checked my template for the code and it is there. Any ideas?

  13. Pauly ( April 24, 2007 at 2:49 pm )

    the wp head code that is.

  14. Marcin ( May 11, 2007 at 6:40 am )

    I have the same problem like Pauly – have wp_head() everywhere, custom field called metakeywords added, have default keywords on home page, not have keywordsfrom custom field on posts or pages. My WP version is 2.1. Can you help us?

  15. biophonc ( May 11, 2007 at 7:04 am )

    Marcin, sry – I have to update it. I’ll do it during this weekend. Maybe today but I don’t want to promise it. Real life has more priority to me :)

  16. Marcin ( May 11, 2007 at 7:17 am )

    Understand, very very good :) .
    Thanks, I am waiting :)

  17. biophonc ( May 18, 2007 at 11:41 am )

    ok, updated :)

  18. Pingback: WP Plugins DB » Blog Archive » metakeywords

  19. Pingback: 2Life Brasil » Blog Archive » Teste do Plugin Read More Ajax

  20. Keith Bridging ( January 3, 2011 at 9:12 pm )

    Very well, the post is definitely the sweetest on this deserving topic. I agree with your conclusions and can eagerly sit up for your incoming updates. Just saying thanks is not going to simply be ample, for the great clarity in your writing. I will directly seize your rss feed to remain knowledgeable of any updates. Great work and far success in your business endeavors!