Wordpress plugin: metakeywords
May 7th, 2006I 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:
- Download the Plugin right here
- Extract the metakeywords.php somewhere
- Edit $default_keywords and $extra_home_keywords with a progam like ie: Notepad, Komodo, Maguma, proton, etc…
- Upload it to your WP plugin dir.
- First time users only: Login into your Blog, then go to »Plugins« and activate it.
- 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)
- 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;)

Jill Says: August 24th, 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?
biophonc Says: August 25th, 2006 at 7:11 am
Yep, that’s right.
Bin neu hier lerne das Bloggen! » Metakeywords einbinden auf Wordpress Says: October 2nd, 2006 at 10:30 pm
[...] 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!!! [...]
Rangel - » Lista de plugins Wordpress Otimizada e Comentanda Says: December 18th, 2006 at 9:47 pm
[...] metakeywords - Boa, coloca suas categorias nas suas meta-tags, também tem outras funcionalidades que eu ainda não explorei. [...]
Kay Says: March 5th, 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
biophonc Says: March 6th, 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
Dave Says: March 13th, 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”
biophonc Says: March 13th, 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.
Dave Says: March 13th, 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.
biophonc Says: March 13th, 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.
Strafverteidiger M�¼nchen Says: April 20th, 2007 at 10:59 pm
great tool, thanks a lot for it.
Pauly Says: April 24th, 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?
Pauly Says: April 24th, 2007 at 2:49 pm
the wp head code that is.
Marcin Says: May 11th, 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?
biophonc Says: May 11th, 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
Marcin Says: May 11th, 2007 at 7:17 am
Understand, very very good :).
Thanks, I am waiting
biophonc Says: May 18th, 2007 at 11:41 am
ok, updated
WP Plugins DB » Blog Archive » metakeywords Says: May 20th, 2007 at 8:55 am
[...] Visit [...]
2Life Brasil » Blog Archive » Teste do Plugin Read More Ajax Says: June 8th, 2007 at 11:08 pm
[...] metakeywords - Boa, coloca suas categorias nas suas meta-tags, também tem outras funcionalidades que eu ainda não explorei. [...]