header image with round borders
 

Wordpress plugin: metakeywords

May 7th, 2006 @biophonc

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;)

19 Responses to “Wordpress plugin: metakeywords”

  1. Jill Says:


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


  2. biophonc Says:


    Yep, that’s right. :)


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


    [...] Auf http://aint-no-soul.com/code/2006-05-07/metakeywords/Ã? heruntergeladen. Bearbeitet wieder in das Plugin Verzeichniss hochgeladen und im Admin Menue aktiviert und geht… Vielen Dank fÃ?¼r das File… ergebins ist nich Ã?¼berwÃ?¤ltigend aber kost nix und ist schon mal nicht schlecht. Was fÃ?¤llt uns bei dem Link oben auf??? Richig fÃ?¼r Wordpress muss es auch ne Rewrite htaccess LÃ?¶sung geben… brauchen wir auch!!! [...]


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


    [...] metakeywords - Boa, coloca suas categorias nas suas meta-tags, também tem outras funcionalidades que eu ainda não explorei. [...]


  5. Kay Says:


    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 Says:


    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 Says:


    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 Says:


    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 Says:


    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 Says:


    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 Says:


    great tool, thanks a lot for it.


  12. Pauly Says:


    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 Says:


    the wp head code that is.


  14. Marcin Says:


    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 Says:


    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 Says:


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


  17. biophonc Says:


    ok, updated :)


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


    [...] Visit [...]


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


    [...] metakeywords - Boa, coloca suas categorias nas suas meta-tags, também tem outras funcionalidades que eu ainda não explorei. [...]


 

» Leave a Reply

*
*
 

» Categories

footer image with round borders