Automatically appends all your blog tags onto the end of your Google XML sitemap file.
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.
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.
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.