- What does it do?
- How does it work?
- How to install the Plugin?
- Tagging of Pages?
- Version History
- Found a bug? Feature request?
This is a tiny plugin I wrote to use the new native tagging from WordPress 2.3 to automatically create a meta-keyword-tag for articles and pages on my blog. It creates the meta-keyword-tag for other pages of the blog as well.
The current version 0.6.4 is available for download at the WordPress plugin directory.
The plugin’s sourcecode is available via subversion repository
There is a support-forum for this plugin.
The following people helped me a lot and participated in solving some bugs (without special order):
Thank you very much!!!
The only thing you need, is a running installation of WordPress 2.7 or later.
What does it do?
The plugin adds a meta-tag to the html-header-part of your blog. This meta-tag contains keywords that describe the contents of the html-page. Adding this kind of meta-tag is one part of the job of optimizing your blog for search engines. To learn more about search engine optimization, I recommend reading and understanding these articles:
With WordPress 2.3 a new native tagging-feature was introduced. I needed a plugin that would allow me to use the new tagging for the meta-keywords as well. Unfortunately, I couldn’t find one, so I wrote one myself.
How does it work?
For articles and pages, it takes the tags and puts them into the meta-tag. Normally, you do not need to modify your theme to make this happen. The plugin uses one of the WordPress hooks to add the tag to your blog. The only thing you have to make sure is that your blog’s header-template (e.g. header.php) contains this tempate-tag:
<?php wp_head(); ?>
The plugin adds the following keywords:
- For single articles and pages it uses the native WordPress 2.3 tags given to the article by the author
- When pages or articles are untagged, the default keywords are applied
- For category- and tag-pages, the category- or tag-title is used as the single keyword
- For archive-pages, the word “archive” and the name/number of the current day, month or year is used
- For author pages, the word “author” and the nickname of the author is used.
- For all other pages, the default-keyword are used. You can set you own default keyword on the options-page of the plugin.
How to install the Plugin?
Just download the zip-archive, extract the plugin-file and upload it to /wp-contents/plugins.
Then go to the plugin-admin-section of your blog and press activate. Now go to the options section and click on ‘WPtags 4 MetaKeywords’. There, you can enter some default-keywords, that are used on pages, where the plugin cannot determine automatically, which keywords to choose.
Tagging of Pages?
WordPress 2.3 normally does not allow you to add tags to pages. But you can install a plugin to solve this problem. I recommend the Simple Tags plugin for WordPress 2.3. Among other benefits (like a highly customizable tag cloud or a ‘related posts’-feature) it enables you to tag pages. Simple Tags does not add a new tagging-system to WordPress, but builds upon the native WP-tagging.
- Version 0.6.4 — Minor changes for compatibility with WordPress 2.7: Uninstall-hook and internal registering of option-settings
- Version 0.6.3 — Minor changes for compatibility with WordPress 2.5.1
- Version 0.6.2 — Added some features to the plugin’s administration-page to enhance security. Changes were inspired by this great article from David Kierznowski.
- Version 0.6 — Fixed a bug that raised a “Page not found error” when pages or articels were untagged.
- Version 0.5 — Initial version
Found a bug? Feature request?
This plugin is hosted at WordPress.org, which is the right place for these matters. Of course, you can also send me an e-mail.
If you want to report a bug or submit a feature request, I would be delighted to hear from you! Please use this form to get in touch with me. Fill out the form and remember to select my plugin at the Component-section (choose “wptags-4-metakeywords”):
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.