Options - > Sitemap Administration Interface, click on the rebuild the sitemap hyperlink to create the Google XML sitemap 4. Check the outputted sitemap.xml file to make sure that all UTW tags have been added and points to the correct page URLs - if you use Google XML Sitemaps Plugin v3.b6+ the sitemap is nicely formatted for easier viewing and validation) 5. Click on several URLs in this XML Sitemap to make sure they are pointing to valid web pages within your site Disclaimers: ============================================================================== 1. The author takes no responsibility, in any form, for any actions or issues with the use of this plugin. 2. This plugin only works with the WordPress plugin versions listed above. 3. You are responsible for the use of this plugin and your own website sitemap. Thanks to: ============================================================================== The author wishes to thank: Christine Davis for Ultimate Tag Warrior plugin (and her support for this plugin) Arne Brachhold for Google XML Sitemaps plugin */ ?> Errors Reported from the AddTagsToSitemap plugin'; echo '
There is no installation of Ultimate Tag Warrior, please install this plugin as this is a requirement for this plugin to work.
'; } if ($UTWinstalled_build != "7") { echo 'You need to upgrade the Ultimate Tag Warrior plugin to at least Version 3.14 for this plugin to work.
'; } return $UTWinstalled_build; } function GetUTWTagUrl ($UTWtag_name, $UTWhome, $UTWbaseurl, $UTWuseprettyurls, $UTWtrailing){ global $UTWtagurl; if ($UTWuseprettyurls == "yes") { $UTWtagurl = $UTWhome . $UTWbaseurl . $UTWtag_name . $UTWtrailing; } else { $UTWtagurl = $UTWhome . "/index.php?tag=" . $UTWtag_name; } return $UTWtagurl; } function GetUTWtags() { global $wpdb, $table_prefix, $UTWtabletags, $UTWtablepost2tag, $UTWsiteurl, $UTWbaseurl, $UTWhome, $UTWuseprettyurls, $UTWtrailing; //get plugin variables $UTWtabletags = $table_prefix . "tags"; $UTWtablepost2tag = $table_prefix . "post2tag"; $UTWsiteurl = get_option('siteurl'); $UTWhome = get_option('home'); $UTWbaseurl = get_option('utw_base_url'); if (get_option('utw_use_pretty_urls') == 'yes') $UTWuseprettyurls = "yes"; $UTWtrailing = ''; if (get_option('utw_trailing_slash') == 'yes') $UTWtrailing = "/"; $UTWversion = CheckForUTWInstall(); if ($UTWversion == "7") { $utwtagObject = &GoogleSitemapGenerator::GetInstance(); $utwtags=array(); $utwtags=$wpdb->get_results("SELECT tag FROM " . $UTWtabletags); if($utwtags) { foreach($utwtags as $utwtag) { $utw_tag = GetUTWTagUrl($utwtag->tag, $UTWhome, $UTWbaseurl, $UTWuseprettyurls, $UTWtrailing); //you can modify the sitemaps page refresh interval and priority to your own settings if you want to // valid refresh internal is "always", "hourly", "daily", "weekly", "monthly" or "yearly" // valid priority level is 0.1, 0.2 to 1.0 (1.0 being the highest) if($utwtagObject!=null) $utwtagObject->AddUrl($utw_tag,time(),"daily",0.6); } } } } add_action("sm_buildmap","GetUTWtags"); ?>