I have a fix for the "permalinks don't work if you have a %category% permalink structure". You don't have to touch your .htaccess file, and you only touch UTW files (not WP core files).
The problem is that the %category% permalink is SO broad that it catches the /tag/<tag> before it filters down to UTW's permalink rewrites. So, you need to raise the priority of those rewrites. I did that by changing two lines in the ultimate-tag-warrior-actions.php file. In this function 'ultimate_rewrite_rules' function you will find two lines that add the permalinks to the rewrite rules. They currently look like this:
// without trailing slash $rules += $wp_rewrite->generate_rewrite_rules($baseurl . '%tag%'); // with trailing slash $rules += $wp_rewrite->generate_rewrite_rules($baseurl . '%tag%/');
This puts the UTW rules at the bottom. If you change them to this:
The UTW rules are at the top of the list, and get checked first. This makes it work completely, and you DO NOT HAVE TO TOUCH your .htaccess file.
I've only tested this on my site, with a %category% permalink structure. If you have another permalink structure (like numeric) you should test this carefully (but it should work). Your mileage may vary. No warranty expressed or implied. Yadda, yadda.
But it's worth a try, and I've contacted Christine and she'll probably be figuring out if she wants to incorporate this into the UTW code formally when she gets back from holiday next week.
That's what my site uses. And that's what I tested it with.
I just referred to %category% because it's the category that causes the problem. Although I would imagine %postname% would be also a problem, and this would fix that too.
I have followed the fixes and me too encountered 404. Please help me, I have been struggling for a week now and so far this is the only place I think that can help me.
1) You have a standard .htaccess file (just the -f and -d entries that WP puts in). This is the default for WP when you have defined "pretty permalinks", that is, a permalink structure other than "default".
2) You have the tag.php and tags.php files from the UTW "example-bits" directory installed in your theme directory.
3) You have changed the two lines shown above in the ultimate-tag-warrior-actions.php file.
If you are getting a 404, it almost certainly means that you skipped step 2. The symptom I have seen of not having #3 is not a 404, but rather a page that says "Sorry, but you are looking for something that is not here".
To diagnose a 404 error, it is best to have your own 404 page defined. To do this, put this line:
ErrorDocument 404 /index.php?error=404
as the first line in your .htaccess file. Then edit the 404.php file that is in your theme to include somewhere in it:
<?php echo $_SERVER['REQUEST_URI']; ?>
This will tell you what page is being looked for. If you see something like "/category/%tag%" (where %tag% is the "base url" you defined in UTW) then the problem is #3 above. If you see "/tag/sometag/" then the problem is #2 above. If you see something else, I haven't a clue.
I think I might have skipped step2. Before doing that, I only input the 1st line into my .htaccess file and also edit the 404.php file. I think that solves the problem. Subsequently have done as per your instructions. It works! Wonderfully!
Chris, you are the Greatest! A gift from God.
One more thing, will I need to do anymore adjustments if I want to change other permalink structures for SEO purposes?
No, you shouldn't have to change this for any reason. The only downside I can possibly imagine to this change in UTW is a very subtle one.
If you have a category with the same name as the "base url" you have listed in your UTW config, UTW will win. For example, if you have your "base url" in your UTW options set to /keyword/ and you also have a category called "keyword", you will go to the tag "keyword" and not the category "keyword". This is a change from the default, where the category would win.
This, however, falls into one of those "if it hurts when you do that, don't do that" scenarios. Just don't have your UTW base url the same as a category name, and all will be good.
Sometimes I wonder if it's really worth all the trouble for the %category%/%postname% structure, but, it sure does look better than /?p=%id%. And although folks say search engines don't care anymore about keywords in urls, search engine users might.
UTW is a grate plugin for tagging. i have made same copy of these copy for 2 times. 1) for the Compnay name tag 2) for the name of person tag 2) for the original tag [ ie utw]
now the problem is as follows, whenever i activated all the 3 plugins and write some posts there. on the output page of the posts i found three type of tags like Company Tags: ------ People Tags: ---- Tags: ----
now when i click on any of the tag it is giving me 404 page error coz it is showing me like
For Company Tags : /tag/any_company_name while it shoild be displayed like "/company/any_company_name" For Company Tags : /tag/any_poeple_name while it shoild be displayed like "/people/any_people_name" For Company Tags : /tag/any_tag_name while it shoild be displayed like "/tag/any_tag_name"
so can any body help me where i m doing mistake or what is the problem there.
This file already had the changes, yet my permalinks are not working correctly.
For example, a tag of chocolate ends up with the link: www.myblogsite.com/wordpress/wordpress/photos/chocolate
I am using the Flickr Photo Gallery plugin, which could be adding it's rules higher than UTW. Is there a way to determine the order in which plugins are being processed?
Sorry, but you are looking for something that isn't here.
After following all the of the above, and not finding the two tag.php files to put in my themes dir...
I am running UTW 3.0.1 with both historical plugins for backwards activities on a WP 1.5.2. (I know, update to 2.X of WP, but would rather not, too much added stuff in the existing code, and I haven't seen the template like what I'm using and don't want to build one for 2.X...)