This WordPress plugin automatically appends all your blog tags generated by the Ultimate Tag Warrior (UTW) WordPress Plugin onto the end of the Google XML Sitemap (sitemap.xml) file as generated by the Google XML Sitemaps for WordPress Plugin.
For example, say you have 60 UTW tags in your blog, and you execute the Google Sitemap Generator for WordPress plugin to re-create your latest sitemap, then this plugin will automatically append all 60 tag URLs onto the end of the newly generated sitemap.xml file.
This means that the Google / Yahoo / MSN (Windows Live) search engines will be made aware of all your internal tags and should then scan and index your tagged directories for your specialised (tag-sorted) content. This should help your blog to achieve higher search engine rankings for your tagged pages.
- Why should I use this plugin?
If you use the Ultimate Tag Warrior plugin for managing your tags then this plugin will automatically add your tags to your Google XML sitemap when you update your sitemap using the Google XML Sitemap Generator plugin.
This not only saves you lots of time in not having to manually add your tags to your sitemap, but will improve your SEO as all your tags will be indexed by the major search engines.
- Known Issues
- Your tag name must not contain an ampersand ‘&’ – if it does, please rename tag without an ampersand – or read the section below.
- No other issues have been reported at the moment. If so, please leave a comment detailing the error at the plugin page.
If you must use ampersands in any of your tags, then there is a PHP function called urlencode() that replaces non-alphabetic characters with a percent (%) sign
followed by two hex digits and spaces encoded as plus (+) signs.
See the PHP: urlencode() site for more info on this function at http://uk.php.net/urlencode
The following code should sort out the ampersand problem if you modify the line below:
However, I have not tested this solution as I do not use ampersands in any of my tags and the PHP: urlencode() site’s comments do warn of some inconsistencies in using this method.
- Final Checks
If you are having issues with this plugin, check the following:
Are you using WordPress 2.0.4+ or 2.1.0+?
Do you have the two prerequisite plugins installed with the correct versions and are all plugins activated?
You have no ampersands in any of tag names – or you are using urlencode() fix?
If you are getting a ‘Fatal error: Undefined class name ‘googlesitemapgenerator’’ error
when trying to rebuild your sitemap – this means you are NOT using v3.0+ of the
Google Sitemap Generator for WordPress Plugin – please update to v3.0b6 or above.
Have you checked your new ’sitemap.xml’ file to make sure that all the URL addresses
point to the correct tag URL addresses – simply copy and past a few URLs from the sitemap.xml file
into your browser to check that you have configured this script correctly. If you have not,
simply deactivate this plugin, modify the script as instructed, and reactivate the plugin,
then rebuild your sitemap using the Google Sitemap Generator for WordPress Plugin. Recheck your sitemap.xml.
Check that the trailing slash (/) is present in your tag URLs if you are using the /tag/tag_name option,
or use an additional plugin called ‘Permalinks Redirect‘ to sort this issue out.
If the answer is yes to all of the above questions, then you can simply deactivate the
WordPress Plugin and remove the PHP file from your plugins folder. There is no risk in
upsetting WordPress as no core files or database tables are modified by this plugin.
- For more up to date information