WordPress Google Sitemap Generator – Ultimate Tag Warrior – Tags Addon Plugin

About the Google Sitemaps – Ultimate Tag Warrior – UTW Tags Addon Plugin

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 XML Sitemap 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.

An example of the Google XML Sitemap with actual UTW tags links is shown in the diagram below. This plugin also supports /tag/tagname formats.

Image of Google XML Sitemap with Ultimate Tag Warrior tags

WordPress / Plugin Compatibility & Prerequisites

1. WordPress v2.0.4+, v2.1 and up to v2.2.3 (not tested with v2.3)
2. Ultimate Tag Warrior for WordPress Plugin (v 3.141 – v3.1415926+ for WP2.0.x)
3. Google Sitemap Generator for WordPress Plugin (v3.0b1 – v3.0.1 for WP2.0+)

This plugin is WordPress v2.1.x compatible - but you must use the latest versions of these two plugins listed below:

Ultimate Tag Warrior for WordPress Plugin (v3.1415926 or above)

Google Sitemap Generator for WordPress Plugin (v3.0b6 or above)

WordPress Plugin Download & Instructions

This WordPress plugin can be downloaded by clicking on the link below.
http://www.dicontas.co.uk/blog/downloads/UTWgoogleSitemaps2_1.zip

All instructions, configuration notes and disclaimers are contained within a readme.txt file that is included within this zip file.

This plugin (and older versions) can also be downloaded from the WordPress Plugins Repository.

Installation

1. Download the zip file above.
2. Delete any previous versions of this plugin from your Plugin directory.
3. Upload the modified UTWgoogleSitemaps2_1.php file into your /wp-content/plugins directory (or a sub-directory of your own choosing)
4. Activate the WordPress ‘Google Sitemaps – Append UTW Tags’ Plugin in the Plugins menu
5. Under the Options menu, click on the ‘Sitemap’ / ‘XML-Sitemap’ tab. In this tab you will see a URL link called ‘rebuild the sitemap’. Click on this link to rebuild the sitemap and your UTW tags will be automatically appended to your sitemap.
6. Check your outputted Google Sitemap file (sitemap.xml) to make sure that all your Ultimate Tag Warrior tags have been added and are pointing to the correct URLs. Use Google Sitemap Generator v3.0b6+ as this allows you to easily check your new sitemap by clicking on each tag entry.

A working example of this WordPress plugin can be found by opening our Google Sitemap and looking at the tag URLs at the bottom of this sitemap.

Known Issues

1. Your tag name must not contain an ampersand ‘&’ – if it does, please rename tag without an ampersand – or read the section below discussing the use of ampersands in your tag names
2. It has been reported by another blog user that the UTW plugin has some compatibility issues with WP2.2. This is not an error with my plugin, but with UTW. Please go to http://moeffju.net/blog/2007/04/10/utw-wordpress-22-tags/ for a resolution.

Configuration

No mandatory configuration changes are needed for the v2.0 release. For optional configuration changes, please refer to the readme.txt file contained within the zip file.

Plugin Version History

Release Date – Version – Description

24/09/06 – v1.0 – Initial Release
24/03/07 – v1.1 – added use of get_bloginfo(‘url’) to get default blog address
25/05/07 – v2.0b – modified the plugin to read all necessary UTW settings and blog paths.
26/07/07 – v2.1 – fixed bug that did not include trailing slashes if set in UTW settings
Previous Plugin Versions can be downloaded here

If you use Ampersands in your UTW tag names

There are some ongoing discussions on the UTW discussion forum about the use of ampersands in UTW tag names, this discussion can be viewed at the Neoto Thing Discussion Forum.

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.

This “should” sort out the ampersand problem if you modify the line below:

AddUrl($utw_tag,time(),”daily”,0.6);
to
AddUrl(urlencode($utw_tag),time(),”daily”,0.6);

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 anyone is willing to add comments on the use/effectiveness of this solution, then please feel free to add a new comment.

Recognition

I wish to thank…

Christine Davis for her Ultimate Tag Warrior WordPress plugin and Arne Brachhold for his Google Sitemap Generator for WordPress plugin and continued support in the development of my WordPress plugin, and Jilly (in comment 11) in pointing out the ‘use of ampersands in her tags’ issue.

Additional script to convert Google Sitemaps into Yahoo – MSN – Windows Live URLLIST.TXT

You may also be interested in another PHP script that I have wrote that uses the outputted ‘Blog’ Google Sitemap file as generated by the Google Sitemap Generator for WordPress Plugin, together with your own ‘Website’ Google Sitemap file, and extracts, parses and appends the URLs from both these Google Sitemaps to generate a new text file that is used by Yahoo, MSN and Windows Live Search search bots (a urllist.txt file). This script is located below.

Google to Yahoo / MSN / Windows Live Sitemaps Generator Tool

Showing your Appreciation

If you are 100% satisfied with this WordPress Plugin, then please put a trackback to this page from your blog site, or leave a nice comment.

If there are any issues with this plugin – then please add a comment to this page so that all visitors are made aware of these issues. I will then try to de-bug any faults that are reported.

69 Comments

  1. Carlton Bale wrote
    at 1:22 pm - 15th October 2006 Permalink

    Stewart, I’ve installed the plug-in, checked to make sure I understood and implemented all of the configuration change properly, checked that I had the correct versions of everything, and I’m still getting an error. I’m hoping maybe you can help. Any ideas what would be causing the error below?

    Fatal error: Call to undefined function: getinstance() in …path_to_blog…/wp-content/plugins/UTWgoogleSitemaps.php on line 73

    If so, please send me an e-mail. Thanks!
    Carlton Bale

  2. Dicontas Blog Admin wrote
    at 12:37 pm - 21st October 2006 Permalink

    Hi Carlton,

    This line of code you reference uses the new API functionality within v3.0b1 of the Google Sitemaps Wordpress Plugin. If you look into the PHP code within Arne’s plugin (the author of this plugin), you will see that there is a fixed way to call his own plugin interface.

    This error is fixed by downloading Google Sitemap Generator version 3.0b4 (released Nov-16-2006).

    Please remember that v3.0 is where he has introduced his new API calls.

  3. tyler wrote
    at 1:56 am - 9th November 2006 Permalink

    If you guys were wondering, this plugin still works absolutely fine with WordPress 2.0.5. At least it does for me with PHP 5.1.2. Thanks for this awesome plugin.

  4. Dicontas Blog Admin wrote
    at 9:49 am - 9th November 2006 Permalink

    Thanks for the update tyler. Great work.

    p.s. I was going to wait a few weeks before installing the WordPress 2.0.5 patch to allow time for other authors to test/update their plugins to this new version.

  5. Dicontas Blog Admin wrote
    at 1:11 pm - 13th November 2006 Permalink

    I can confirm that this plugin works with WordPress 2.0.5 as I have now updated my WordPress blog to this version.

  6. Carlton Bale wrote
    at 6:07 pm - 24th November 2006 Permalink

    Just a quick update, Google Sitemap Generator version 3.0b4 (released Nov-16-2006) fixed the problem I was having, all is working well. Thanks!

  7. Ben Richards wrote
    at 11:09 am - 28th November 2006 Permalink

    Thanks for this plugin. Works great after i updated to the latest version of the Google Sitemap Generator.

    Thanks

    Ben

  8. Dicontas Blog Admin wrote
    at 3:02 am - 9th January 2007 Permalink

    I have updated to WordPress 2.0.6 and this plugin has been tested.

    All tests passed with using the latest versions of the Google Sitemap Generator and Ultimate Tag Warrior plugins. (See Prerequisites section at top of this page).

  9. Jilly wrote
    at 3:00 am - 14th January 2007 Permalink

    Hi
    Thanks for your plugin :)

    Google reports an error, however, when I have a UTW tag that contains an ampersand. If I remove or rename that tag and re-generate the sitemap it is OK.

    Take care
    Jilly

  10. Mark S. Meritt wrote
    at 2:43 am - 16th January 2007 Permalink

    Thanks very much for this plugin — glad to have my UTW tags in my sitemap.

  11. Plain Jane Mom wrote
    at 7:40 pm - 30th January 2007 Permalink

    I’d love to install this plugin, but I’m also about to upgrade to WP 2.1 — is your plugin compatible? Thanks.

  12. Dicontas Blog Admin wrote
    at 8:01 pm - 30th January 2007 Permalink

    Hi Jane,

    My plugin basically takes the Ultimate Tag Warrior (UTW) “tags” and appends these tags onto the end of the blog sitemap. But reading the latest WP2.1 release notes, UTW is not 100% compatible with WP2.1 at the moment as there is a bug that makes tag disappear under some circumstances (see below).

    So until this UTW bug is fixed in a future release, then I would recommend NOT to install/use my plugin together with the UTW and Arne’s Google XML Sitemap Generator plugin in a WP2.1 environment.

    Visit this link to see the current WP2.1 UTW compatibility bug.
    http://codex.wordpress.org/Plugins/Plugin_Compatibility/2.1

    this link explains the following bug…
    Ultimate Tag Warrior (v3.1415926) – Tags are wiped when a comment is approved. Christine is aware of the problem.

    As soon as this UTW bug is fixed, I will test with WP2.1 and update this page with the results.

  13. Thien Kai Wei wrote
    at 3:34 am - 6th February 2007 Permalink

    Hi Dicontas!

    Thanks for visiting my blog and spot that incorrect link!

    Just like to inquire, does your plugin work with Google Sitemap Generator 2.7?

    I went over to the site and felt that its a little too shaky to upgrade for the moment…

  14. Anil Kumar Shakya wrote
    at 7:12 am - 6th February 2007 Permalink

    I’d love to install this plug in, but I’m also about to upgrade to WP 2.1 — is your plug in compatible? Thanks.

  15. Dicontas Blog Admin wrote
    at 9:05 am - 6th February 2007 Permalink

    As this plugin relies on the Ultimate Tag Warrior plugin, I would strongly recommend NOT to upgrade to WP 2.1 at the moment until Christine releases a new UTW release that is 100% WP2.1 compatible.

    Until then, I cannot test my plugin as I only have one live site (this blog) and I do not want to risk my tags disappearing due to a few bugs in her current version. There are a few hacks flying about, but this is to risky and not tested enough for me to move onto WP 2.1 release. Will keep you posted.

  16. amellie wrote
    at 10:44 am - 6th February 2007 Permalink

    it seems that Christine has released a new UTW… check it here

  17. Dicontas Blog Admin wrote
    at 11:06 am - 6th February 2007 Permalink

    Having looked at Christine’s (UTW) discussion forum, I still think it is too early to use UTW with WordPress 2.1. Tag clouds are disappearing, and some other post attributes. I am going to leave it for 2-3 weeks to let the other WordPress bleeders/leaders force out these issues. For the sake of my blog users, I do not want to upset my own blog at the moment until wordpress.org list the UTW tag as fully compatible with WP 2.1. See link below for this list.

    http://codex.wordpress.org/Plugins/Plugin_Compatibility/2.1

    If anyone has tested my plugin with WordPress 2.1, then please comment and if several bloggers do agree on a consensus, then I will be more than happy ;-)

  18. R. Richard Hobbs wrote
    at 5:09 pm - 8th February 2007 Permalink

    I just checked and there is a post reflecting she has updated UTW for WP2.1. I have downloaded and installed her updated plugin and it and your plugin seem to be playing well together once again. I was getting “page not found” when following tag links in ; I didnt chk every link but the one I did check was ok and my account a Google Webmaster Tools is not reporting a significant number of 404’s so I am considering the issue resolved.

    Thanks to you and Christine both for great plugins!

    RH

  19. Dicontas Blog Admin wrote
    at 8:07 pm - 8th February 2007 Permalink

    Thanks Richard for testing my plugin with WordPress 2.1.

    I also have now tested my plugin on WP2.1 and I can find no issues with my plugin. My WP2.1 test blog has been used. I have tested with UTW primary and secondary tags enabled and with using the /tag/tag_name and the /index.php?tag=tag_name options.

    That said however, if your tags are disappearing when running with WordPress 2.1 then this is a current issue with the latest release of Ultimate Tag Warrior plugin – and not with my plugin as this only does a SELECT statement to receive the current tags from the WordPress database.

    If anyone has any other issues, then please let me know.

  20. Dicontas Blog Admin wrote
    at 2:15 pm - 9th February 2007 Permalink

    Richard,

    Please remember that you may need to Update Permalink Structure (in Options -> Permalinks) if you upgrade Ultimate Tag Warrior.

    Only do this if you are getting 404 errors.

  21. ituloy angsulong wrote
    at 11:19 pm - 9th February 2007 Permalink

    also if you your blog is intalled in the root directory modify this line
    $utw_tag = “http://www.yourdomainname.com/blog/index.php?tag=” . $utwtag->tag;

    to
    $utw_tag = “http://www.yourdomainname.com/index.php?tag=” . $utwtag->tag;

    otherwise you will get 404 pages

  22. Carlton Bale wrote
    at 7:00 pm - 26th February 2007 Permalink

    Great plug-in. Any plans on making the configuration occur though an administrative panel rather than having to edit the PHP file? This is something I’ll eventually forget to do when I perform an upgrade and it will cause problems. . .

  23. Dicontas Blog Admin wrote
    at 9:23 pm - 27th February 2007 Permalink

    I hope to make a WordPress plugin via the WP Administrator interface. However, I need to find time to do this as it looks like a few months before I can find the time to do this. Thanks for your comment.

  24. Octav wrote
    at 8:06 pm - 3rd March 2007 Permalink

    You can change the plugin a bit so that it doesn’t require configuration. First of all, you can get the ur of the blog with get_bloginfo(‘url’). Then, you could get the Google Sitemaps Plugin options and see if url rewriting is enabled or disabled and choose the proper url.

    // for url rewriting enabled
    $utw_tag = get_bloginfo(‘url’) . ‘/tags/’ . $utwtag->tag;

    // for url rewriting disabled
    $utw_tag = get_bloginfo(‘url’) . ‘/index.php?tag=’ . $utwtag->tag;

  25. andy wrote
    at 3:50 am - 6th March 2007 Permalink

    Just had to say thanks, this is exactly the plug in i was looking for

  26. Eli Sand wrote
    at 9:05 pm - 19th March 2007 Permalink

    Been using this for a few days now – works well. My only gripe was in the editing of the file to make it work, so what I did was read up on a few functions in WordPress and came up with this replacement line (for the one you edit):

    $utw_tag = get_bloginfo(’siteurl’) . trailingslashit(get_option(‘utw_base_url’)) . $utwtag->tag;

    This works for me, and it might work for all cases but I’m not 100% sure. I use rewrite rules for my pages, so the trailing slash thing was required for me, however it might break url’s that don’t get rewritten and instead use queries. Still though, I am sure that you could make it so that no editing is required to configure this plugin which would make it a lot easier for non-programmers to activate/use this.

  27. Dicontas Blog Admin wrote
    at 1:16 am - 24th March 2007 Permalink

    Hi Eli,

    Thanks for your recommended code changes.

    I have modified my plugin code to use the get_bloginfo constant value, but I have not used the get_option for the utw_base_url.

    The reason for not including this, is that I cannot fully test this, so I will leave it up to the other WordPress administrators to use & test your new code.

  28. Dave wrote
    at 8:37 am - 25th March 2007 Permalink

    Hi! It’s a great plugin!
    Only one thing is missing! When a tag many page (like for example /tag/tagname/page/2 or /tag/tagname/page/3), it’s not showing in the XML file… Is there a way to correct this?

    Thank you !

    Dave

  29. Dicontas Blog Admin wrote
    at 4:31 pm - 25th March 2007 Permalink

    Hi Dave,
    As this plugin relies on Ultimate Tag Warrior to get the list of tag pages, then the only way to do this is to manually create the URLs in the Google Sitemap Generator plugin. Sorry for this restriction.

  30. Jurgen wrote
    at 9:44 pm - 25th March 2007 Permalink

    Thanks for the plugin. I am rewriting my tags, so I made the changes to line 18 in the code:

    $utw_tag = get_bloginfo(‘url’) . ‘/tag/’ . $utwtag->tag; . ‘/’;

    However, this leads to the following error:

    Parse error: syntax error, unexpected ‘.’ in /home/jurgen/public_html/wp-content/plugins/UTWgoogleSitemaps.php on line 18

    Can you help? Thanks again.

  31. Dicontas Blog Admin wrote
    at 10:21 am - 26th March 2007 Permalink

    Hi Jurgen,
    You need to remove the first semi-colon after the ->tag in your code. This should fix the error.

  32. Jurgen wrote
    at 3:30 pm - 26th March 2007 Permalink

    Thank you much. You might want to fix this in the readme file, too.

  33. Dicontas Blog Admin wrote
    at 11:07 am - 27th March 2007 Permalink

    Hi Jurgen,
    I updated the readme.txt file yesterday to remove this semi-colon bug, but thanks for the warning anyway.

  34. John wrote
    at 8:37 pm - 27th March 2007 Permalink

    Hey Admin, thanks for the work and for fixing the bug. :-) John

  35. Dominios wrote
    at 8:56 pm - 2nd April 2007 Permalink

    Dicontas,
    There was a zero division error when you rebuild the sitemap.
    It is because whe you copy and paste the correct line from readme.txt to line 18 in UTWgoogleSitemaps.php you use diferent kind of quote.
    Sorry for my english. I just want to tell you a problem that I had.
    Pablo.

  36. Dicontas Blog Admin wrote
    at 11:51 pm - 8th April 2007 Permalink

    Thanks for identifying this bug Dominios.

    I have updated the readme.txt file to resolve this error.

  37. Patrix wrote
    at 7:39 pm - 12th April 2007 Permalink

    First, great plugin! I implemented it and it worked like a charm.

    Now, from a SEO perspective it is creating duplicate pages of content (single post content and tag page content). Daniel at Daily Blog Tips suggests a way to restrict content to excerpts on category, month, day, year pages. See code at the end of the above linked post.

    What is the variable name we can use to do the same for tag pages?

  38. Dicontas Blog Admin wrote
    at 7:49 pm - 12th April 2007 Permalink

    Hi Patrix,

    To get an answer of how to modify your tag pages, i think you should visit the Ultimate Tag Warrior plugin site. There are lots of info and a forum on how to customise the UTW plugin. Hope this points you in the right direction.

  39. Dicontas Blog Admin wrote
    at 3:46 pm - 13th April 2007 Permalink

    Hi Patrix, to add my view of the SEO duplicate content issue, yes I agree that duplicate content may be an issue, but then the other (post) content that is present on category and tag pages will effectively mean that a single post page will always differ in content than a tag/category page that has lots of posts in it (i.e. much more additional content).

    My other observation is that category and tag pages are receiving a better pagerank than single post pages – on my site anyway! If this is the general rule of blog pageranks, then surely it would be better to have the long excerpt of your post grouped on your tag pages where content will rank higher on the search engines. I may be totally wrong here.

    The other option is to disable single post pages and archive pages, and have all post content on shared-post pages, such as tag or category pages. That way, duplicate content is minimised yet you keep the benefits of having your post content placed on a higher pageranked page, and where the page is more likely to be re-indexed by the search engines as the content is modified more often when adding new ‘grouped’ posts.

    I also read somewhere that the ‘Google duplicate content algorithm’ also tests content down to the single paragraph and sentence-level, so even short-excerpt posts may be penalised for duplicate content. To me, its a risk worth taking.

  40. Tim wrote
    at 11:36 pm - 18th April 2007 Permalink

    Great stuff! Thanks! One quick question? When I look at the sitemap.xlm file some multi-word tags have “-” dashes between them and some have “_” underscores. I think I read somewhere that Google treats underscores differently than dashes. Do you know?

    Thanks,
    Tim

  41. Dicontas Blog Admin wrote
    at 4:51 pm - 20th April 2007 Permalink

    Tim, I also read that some SEO people (including Google blogs) say that it is better to use dashes instead of underscores. With dashes, the search engine spiders will definitely know that they are different words – otherwise with the use of underscores, you may run the risk of some search engines treating the two words as one complete word as therefore lowering your chances of presenting your page in the search results. That said, when you test this theory when searching, most underscored words are being presented in the search results!

  42. Mark S. Meritt wrote
    at 3:15 am - 1st May 2007 Permalink

    I really appreciate this plug-in and mentioned so up there in the Comments a couple of months ago when I first found it. But I have now found an error. With the Google Webmaster tools, errors are being reported in my sitemap, and every error involves the URL of a tag archive. “www.” is being put into a number of the tag archive URLs in the sitemap even though my site is set as a default to leave “www.” out of all URLs. The sitemap apparently knows this, as this is why Google believes there is an error — it says that the sitemap was submitted without www, but several URLs have it. I obviously don’t know for a fact that the error is with this plug-in, but it seems logical guess. Any ideas?

  43. Dicontas Blog Admin wrote
    at 10:20 am - 1st May 2007 Permalink

    Hi Mark,
    You are correct, the tag pages are being written with www.

    The www comes from the blog_info variable so this must be a small bug with WordPress. To fix this, simply modify the UTWgoogleSitemaps.php file
    from:
    $utw_tag = get_bloginfo('url') . '/tag/' . $utwtag->tag . '/';
    to:
    $utw_tag = 'http://potluck.com' . '/tag/' . $utwtag->tag . '/';

    that is, replace the get_bloginfo(url) with your sites static domain name.

    Then restart the plugin and refresh your sitemap using the Google Sitemap Generator plugin.

    Hope this helps.

  44. Mark S. Meritt wrote
    at 3:12 pm - 1st May 2007 Permalink

    Thanks for the fast and effective response. You know what happened here? When I’d gotten the plugin from you, the instructions were different. The getbloginfo(url) function wasn’t in there at all. There was a dummy URL like “http://www.yourdomainname.com” and the instructions said to replace with your own. Which I had done. And stupidly, I followed the directions too literally, and I put in http://www.potluck.com because potluck is my domain name, and I did not exclude the www. that you had! So I downloaded the new version of your plugin just to be safe, and I see that the bloginfo function is there now. I also downloaded the new Sitemap plugin itself, which is nice because now my sitemap has the stylesheet added so that people can actually read the sitemap. So the issue with the domain name is gone, all is well with the bloginfo function. Thanks.

    I do, however, have another issue! And I’d noticed this before, but I wanted to wait and make sure it was still there through this other fix, and alas it is. The issue is that there are extra tag items being added into my sitemap, extra inaccurate ones for tags I don’t have. But it’s not that they come from nowhere. Over time, as I was adding tags, there were times I’d enter a tag incorrectly. So it would show up in the list of tags, and there’d be an archive for it. But then I’d catch the error and correct it. And right now my list of tags, as generated dynamically by UTW on the Write Post pages and in the various dynamic lists it creates for me on my site, it’s all accurate. But those erroneous typo tags I’d had before somehow still seem to exist in the bowels of my WordPress database — because your plugin is picking them up for the sitemap! And your plugin is the only evidence I have that those things are still in there somewhere. And I guess it’s not really relevant that those tags I had were erroneous. The point is really that a tag can be entered and used for a time, but then if the tag is removed from all posts, at that point, there is obviously a relic of it, and that relic doesn’t seem to impact anything except your plugin.

    So I suppose the question for you is, can your plugin somehow come to distinguish only the current set of tags and ignore any tags that may have been entered at one point but were since deleted?

  45. Dicontas Blog Admin wrote
    at 4:00 pm - 1st May 2007 Permalink

    Hi Mark,

    You have two options:
    1) Use the UTW’s own Tag Cleanup option to remove tags that are not used – - but Christine (the UTW plugin author) says to take a full backup first!
    2) Modify my plugin to enhance the SELECT query to select only tags that are used in posts.

    If you want to go down the second option then here is the sql code:

    SELECT DISTINCT wp_tags.tag
    FROM wp_posts, wp_post2tag INNER JOIN wp_tags ON wp_post2tag.tag_id = wp_tags.tag_id
    WHERE (((wp_post2tag.tag_id)=wp_post2tag.tag_id) AND ((wp_post2tag.post_id)=wp_posts.ID));

    This latter option is risk free as you can undo your actions relatively simply by restoring my original PHP file back to the original SQL SELECT query.

    Please remember to change the prefix of the wp_ tables in this SQL code to whatever you prefixed your core WP tables to when installing WordPress. e.g. I used wp_01_ for all my tables.

    Let me know how you got on.

    p.s. Also please remember that if you have a lot of posts, then this sql may take a few seconds more to return its results.

  46. Mark S. Meritt wrote
    at 2:32 am - 12th May 2007 Permalink

    Ah, great, thanks. I went with option 1. Backed up first, ran Tidy Tags. Looked at the sitemap, looks fine. All seems well. Thanks!!!

  47. Dicontas Blog Admin wrote
    at 10:05 pm - 13th May 2007 Permalink

    Continuing on from the request to only submit tag pages that have 1 or more posts in them, can someone please try to replace LINE 16 with the following code?

    I do not have any test blogs to test this on. If this code works, then I will update the plugin in the next release. Thanks in advance if your up for the job!

    $utwtags=$wpdb->get_results("SELECT DISTINCT tag FROM " . $table_prefix . "posts, " . $table_prefix . "post2tag INNER JOIN " . $table_prefix . "tags ON " . $table_prefix . "post2tag.tag_id = " . $table_prefix . "tags.tag_id
    WHERE (((" . $table_prefix . "post2tag.tag_id)= " . $table_prefix . "post2tag.tag_id) AND ((" . $table_prefix . "post2tag.post_id) = " . $table_prefix . "posts.ID))" . "");

  48. Astorg wrote
    at 12:34 am - 29th May 2007 Permalink

    Looks like the UTW plugin is incompatible with WordPress 2.2. Pity, since the inbuilt tag functionality offered out-of-the-box with WordPress 2.2 is much inferior to UTW (no tag clouds for starters).

  49. Dicontas Blog Admin wrote
    at 9:30 am - 29th May 2007 Permalink

    For the UTW issue with WP2.2, please goto http://moeffju.net/blog/2007/04/10/utw-wordpress-22-tags/ to resolve the UTW bug issue.

  50. Mindy wrote
    at 6:55 pm - 23rd June 2007 Permalink

    Fatal error: Undefined class name ‘googlesitemapgenerator’ in /public_html/wp-content/plugins/UTWgoogleSitemaps2_0b.php on line 78

    What should I do?

    I am using WP 2.2.1.

    I wasn’t sure if I needed to modify UTW php files still since 2.2 doesn’t use Tagging. Please help!

  51. Dicontas Blog Admin wrote
    at 7:17 pm - 23rd June 2007 Permalink

    Hi Mindy,
    This error is received if you have either of the following:
    - you are not using a version of Google Sitemaps plugin above v3.0
    - you have not activated the Google Sitemaps plugin.

    This plugin uses the new Google Sitemap API which was embedded into v3.0 and above.

  52. Zoekmachine Optimalisatie wrote
    at 1:27 pm - 16th July 2007 Permalink

    Hi,

    I am getting the following message after pushing in the button “Rebuild sitemap”..

    Fatal error: Undefined class name ‘googlesitemapgenerator’ in /home/zoekecc1/public_html/wp-content/plugins/utw/UTWgoogleSitemaps2_0b.php on line 78

    What am I doing wrong, or better, what can I do to overcome this?

    Thanks in advance for your reply!

    ZO

  53. Dicontas Blog Admin wrote
    at 1:34 pm - 16th July 2007 Permalink

    Hi Zo,

    You need Google Sitemap Generator for WordPress Plugin (v3.0b6 or above).

    Please download the latest version of this plugin. A link is contained in the WordPress / Plugin Compatibility & Prerequisites section above.

  54. Zoekmachine Optimalisatie wrote
    at 2:43 pm - 16th July 2007 Permalink

    Thanks!

    Thank you very, very much!!

  55. Ryan wrote
    at 1:32 am - 26th July 2007 Permalink

    Nice little script, but I found a small typo. On line 53 you reference the variable $trailing but it’s defined as $UTWtrailing in the function call so trailing slashes are left off regardless of the setting.

  56. Dicontas Blog Admin wrote
    at 3:04 pm - 26th July 2007 Permalink

    Thanks Ryan for highlighting this bug.

    I have fixed the bug and updated the release to v2.1.

  57. oyun hileleri wrote
    at 6:34 am - 18th August 2007 Permalink

    thanks good plug-in

  58. Dan wrote
    at 2:11 pm - 18th August 2007 Permalink

    Thanks for your work on this plug-in. A nice bridge for two essential plug-ins.
    Dan

  59. woojar wrote
    at 5:01 am - 23rd August 2007 Permalink

    Hi,dicontas

    I have installed your tags addon plugin on my wordpress version 2.2.2. But there is no Sitemap Administration Interface appeared on the Admin – > Options. I have installed the other two plugins. Can you give me any help? Thanks in advance.

    woojar

  60. Dicontas Blog Admin wrote
    at 8:12 am - 23rd August 2007 Permalink

    Hi Woojar,

    If you have installed and activated the Google XML Sitemaps plugin, there is a tab under the Options menu that will be called either ‘Sitemap’ or in v3.0b8+ its called ‘XML-Sitemap’.

    In this tab you will see a URL link called ‘rebuild the sitemap’. When you rebuild the sitemap and all three plugins are activated (including my own) then your UTW tags will be automatically appended to your sitemap.

  61. Kary wrote
    at 9:44 am - 23rd August 2007 Permalink

    Hi, I have a little problem and I can’t figure out if it comes from your (great) plugin or from UTW plugin. Generating my sitemap, Google finds an error:

    http://myblog.domainname.com/tag/ – 404 (Not found)

    What is this URL supposed to show? The complete list of the tags of my blog? I’m lost, any help is more than welcome since UTW is quit a mess to work with… Thx a lot ! :)

  62. Dicontas Blog Admin wrote
    at 9:51 am - 23rd August 2007 Permalink

    Hi Kary,

    It looks like you have an empty tag in UTW somewhere – i.e. a tag with no name. Try looking and removing any aliases that you don’t need.

    Best seek support from Christine from the UTW plugin homepage at the top of the page as this issue is not related to my plugin.

  63. Woojar wrote
    at 12:01 pm - 23rd August 2007 Permalink

    Hi, Stewart, Thank you very much. It really works on my Wordpress version 2.2+Google-XML-Sitemap v3.0b8+UTW vfin.

    Woojar

  64. PapyGeek wrote
    at 1:10 pm - 14th September 2007 Permalink

    Hello,

    Thanks for this plugin.
    I think there is only one little problem with future posts. Tags are appended in the sitemap but they shouldn’t as the article doesn’t exist yet.

    Google Webmaster tools is reporting a lot of 404 errors for me because of “future tags”.

    Sorry for my english.

    PapyGeek.

  65. Dicontas Blog Admin wrote
    at 1:51 pm - 14th September 2007 Permalink

    Hi PapyGeek,

    Yes, this will be an minor issue as I do not fetch (i.e. read) the Post release date when doing the SELECT SQL statement to fetch the tag names.

    This will be more of an annoyance as I don’t think that Google will penalise you for 404 errors – I may be wrong though!

    Have a look comments 47 & 47 as they discuss how to modify the SQL statement. Feel free to modify the plugin as you so desire.

    The other thing to consider is that Google will have already tried to index these ‘future tags’, so when the actual posts are released Google will already know of them, so it may help indexing times and trigger of a PageRank refresh on these tags.

    Best ask the Google team on this one!

    p.s. I may consider this request in a future release of the plugin. But cant commit to a release date though. And WordPress is embedding tags into version 2.3 so my plugin may need major restructuring anyway!

  66. Fahmishah wrote
    at 4:09 pm - 19th September 2007 Permalink

    dude! Its work ! thanks for the plugin..nice

  67. Armin wrote
    at 6:41 pm - 30th October 2007 Permalink

    This generator is great because he help me promotion my web.

  68. trademark registration wrote
    at 3:42 am - 27th November 2007 Permalink

    I used this generator too, and I got listed on Google the next day. It works really well. Thanks!

  69. rugs wrote
    at 10:21 pm - 24th January 2008 Permalink

    That’s incredibly useful and powerful. Thanks for that. I like making the search engine’s job easier, it seems to consistantly mean better ranking for me. This will definitely help, I think.
    Tagging is often used wrongly or just under-used. It’s a very awkward way of filing, to be honest – especially when it comes to computers and search algorithms. The more we can make some good use of it the better!

Trackbacks & Pingbacks 8

  1. From T. Longren on 10 Oct 2006 at 7:56 pm

    Send Your Tag Archives To Google Sitemaps…

    Do you use Ultimate Tag Warrior WordPress plugin to tag your posts? What about the Google Sitemaps plugin for sending google a copy of your sitemap?
    If you use Ultimate Tag Warrior, as I do, you can get archive pages based off tags. For example, my w…

  2. From orioa on 29 Oct 2006 at 3:14 pm

    Google Sitemaps に UTW Tag を追加する…

    Google Sitemaps に UTW Tag を追加するプラグインがあったのでご紹介します。
    Google Sitemaps – UTW Tag Addon for WordPress 2.0 · Email Monitoring & Email Filtering Blog · Email Monitoring
    もちろんこのプラグインを…

  3. From CSS 2.0 » WordPress SEO 插件介绍 on 09 Apr 2008 at 9:19 pm

    [...] Google Sitemaps – UTW Tag Addon – 这个插件是针对 Google SiteMap 和 UTW 两个插件,提供 SEO 功能。 [...]

  4. From Woojar » 也做一些SEO方面的设置吧 on 13 Apr 2008 at 7:39 am

    [...] 首先规范你的robots.txt和sitemap.xml文件,然后文章中定义一些标签tag, 如果是wordpress的话可以装关于TAG的三件套: UTW,Google-sitemap-generater, Append UTW tags into sitemap. [...]

  5. From WordPress最有用的SEO插件 | 新手网 imnewer.cn on 24 Apr 2008 at 9:25 am

    [...] Google Sitemaps – UTW Tag Addon – 这个插件是针对 Google SiteMap 和 UTW 两个插件,提供 SEO 功能。 [...]

  6. From Top SEO Plugins For Wordpress on 27 Apr 2008 at 7:51 pm

    [...] Google Sitemaps – UTW Tag Addon – This plugin is a WordPress 2.0.4 plugin that automatically adds the UltimateTagWarrior tags onto the end of the google sitemap XML file as produced by the Google Sitemap plugin. [...]

  7. From wordpress插件集锦(不断添加中…) on 04 May 2008 at 12:32 pm

    [...] Google Sitemaps – UTW Tag Addon – 这个插件是针对 Google SiteMap 和 UTW 两个插件,提供 SEO 功能。 Head META [...]

  8. From Site map dan Keyword di Wordpress Gratis « WEB TUTORIAL KOMPUTER INDONESIA on 06 May 2008 at 3:18 am

    [...] Perlu di pahami juga untuk pemula : wordpress meskipun yang gratis total merupakan mesin yang powerfull untuk keperluan SEO dan bersosialisasi dengan sesama pemakai WP di seluruh dunia, malah justru yang gratis ini bisa memanfaatkan semaksimal mungkin fasilitas yang ada tanpa repot-repot mendownload plugin ini dan itu lalu meng-upload ke admin server.,seperti halnya jika menggunakan hosting sendiri. Di sini yang di perlukan hanyalah kreativitas . Di bawah ini sekedar info,  link-link plugin yang bisa di gunakan pengguna hosting sendiri untuk di download: 1. All In One Seo Pack 2. Seo Title Tag 3. Ultimate Tag Warrior 4. No Follow In Post 5. Google Sitemap Generator 6. Google Sitemaps – Append UTW Tags [...]

Post a Comment

You must be logged in to post a comment.