Hacking Ultimate Tag Warrior To Create Better Tag Pages
August 10th, 2007 by CourtThe Ultimate Tag Warrior is simply a rock star of a plugin. The benefits of using it are endless. Here are a few of the reasons I use it:
- Tag pages are created for you, extending the amount of pages in your site.
- It increases PageRank. Since you are no longer linking out to Technorati or another site to make tags, that ‘link juice’ stays within your site. It’s passed from your post pages to the tag pages, which of course pass it to your home page.
- Even though the tags don’t link to Technorati, they still work to categorize your posts in Technorati and other blog search engines.
I’ve already created a guide/review that can help you to install the plugin, so if you missed it you can find it here: Ultimate Tag Warrior Wordpress Plugin Reviewed.
One Known Problem With Ultimate Tag Warrior
The only thing that has been bothering me about the Ultimate Tag Warrior is that the tag pages don’t show many posts that are tagged with the perspective tag. The plugin actually takes the amount of posts you show on your homepage and uses that number to determine how many posts it will show on each tag page. Since my home page shows 5 posts, my tag pages would only show 5 posts.
This results in very small tag pages, even the pages for tags that are used many times. I could show more posts on my home page, but I show want to and I really don’t like to do things I don’t want to do.
I’ve used the tag ‘make money online’ about 25 times, but the make money online tag page was only showing 5 of the posts I had used that tag on.
The first problem with that is that the pages are less likely to get indexed when they don’t have very much material on them. The second problem is that having only five posts per tag page lowers the inner-linking potential of the tag pages. I wanted my tag pages to show at least 20 of the posts that were tagged with the perspective tags.
The Hack That Fixes The Tag Page Issue
Liz Jackson (who by the way is a freaking genius for creating this hack) helped me to fix this issue, and the solution is actually quite simple if you’re not the person that has to figure it out.
Here’s the step-by-step:
1. Hard-code your home page to show the amount of posts you would like to show. This will make it so you can change the number of posts you want to show on the tag pages without changing the amount you show on the home page. To do this you actually have to edit your WordPress theme, and I will show you how to do it! Here are the steps:
- Login to your WordPress admin.
- Click ‘Presesntation’.
- Click ‘Theme Editor’. The screen will then load all of the files in your theme, and you will see them listed on the right-hand side of your screen.
- Click ‘home.php’. This will make it so your admin will load the home.php file, which is the template for your homepage. If you don’t have a ‘home.php’ file you will click the ‘index.php’ file instead.
- Look for this piece of code:
<?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?>
- Delete the code and replace it with this piece:
<?php $custom_loopcount = 0; ?> <?php if (have_posts()) : while ((have_posts()) && ($custom_loopcount < 5)) : the_post(); ?> <?php if (is_home()) $custom_loopcount++; ?>
- Change the number 5 to the amount of posts you would like to show on the homepage. You will leave it as a 5 of you want to show 5.
- Click ‘Update File’ to save your changes.
2. Trick Ultimate Tag Warrior to show more posts on your tag pages than are shown on your home page. Doing this is actually fairly easy and can be done by using an easy to install plugin. Here’s the step-by-step:
- Download the Custom Query String plugin. This plugin is actually very cool and allows you to choose how many posts you want to show on each type of page. By using it, you could show 10 posts on your home page, 5 on your category pages, 8 on your archive pages, or any combination of post counts you wish.
- Upload the plugin to your wp-content/plugins folder. If you aren’t sure how to upload using FTP, see this lesson: How To FTP Using FileZilla.
- Activate the plugin by logging into your WordPress admin, going to ‘Plugins’, finding the ‘Custom Query String Plugin’ on the list, and clicking the activate link next to it.
- Go to the options for the plugin by clicking ‘Options’ in your WordPress admin and then clicking ‘CQS’.
- Select ‘is_home’ in the ‘Condition’ drop-down. Type in the number of posts you would like to show on your tag pages in the ‘Show’ column. I wanted to show 20, so I typed in 20.
- Click ‘Add’.
My options ended up looking like this, before I clicked ‘Add’:
Once you click add, you should be good to go! It might seem like you’re changing the amount of posts that appear on your home page. Don’t worry, the theme hack we used in step 1 overrides this setting. Your home page will stay on the number you entered in step 1, and your tag pages will use the number you entered in the options in step 2!
Conclusion
This hack will make it so that you can get more traffic on your tag pages. It will also help you to increase the inner-linking in your site which makes your site more search engine friendly and will pass more PageRank to your homepage. If you use Ultimate Tag Warrior, this hack will help you significantly.
Related Posts:
Increase Search Traffic With Effective Link Structure 2.0
2007 has been the biggest year ever for new blogs. At the current rate of growth, over 30 million ne...
AntiSocial WordPress Plugin Reviewed + Install Guide
The AntiSocial plugin (download) is ironically a very social plugin. After it's installed WordPress ...
My 15 Current Wordpress Plugins
A lot of people have been asking me lately about what plugins I'm using, so I have decided to post t...
WordPress Plugins
Here are all the plugins I'm using! For your convenience I will add the new plugins I install at the...
Ultimate Tag Warrior Wordpress Plugin Reviewed
Short version of the review:
This plugin is a rock star. Install it pronto, if you dare. Level of...
11 Unescapable Steps To WordPress Synergy
There's no longer a need to argue the benefits of using WordPress as your blogging platform. If you'...

August 10th, 2007 at 5:12 pm
Sweet thanks Court and Liz Jackson. I will be setting this up on my site tonight.
August 12th, 2007 at 12:50 pm
You’re welcome Mike, I hope it helps you out a lot!
August 10th, 2007 at 5:34 pm
Nice work Court! I’ll have to try this hack over the weekend.
Don
August 12th, 2007 at 12:51 pm
I would Don! I think it will be worthwhile, it seems like the inner-linking benefit will be pretty significant.
August 10th, 2007 at 9:05 pm
I don’t even have this plugin, but I will be playing around with it in the next few days, thanks for the tutorial
August 12th, 2007 at 12:52 pm
It’s a great plugin! Like any other plugin, it’s not necessary to have a very successful blog. I would give it a shot, but don’t worry about it!
August 11th, 2007 at 9:54 am
i see all your advices worked for me pretty good, But I do have one question left :
how did you do to have just the subject in your tag page, and not all the content ? (i get the content)
I would like to use that system you use, but my tags page will go so large when i get the whole 20 posts… please give me an answer bro… i will keep following your comments
August 12th, 2007 at 12:54 pm
I actually edited the tag.php page so that the content wasn’t in there. You’ll have to edit your tag.php and remove the line of code that says ‘the_content’.
August 14th, 2007 at 2:46 pm
thanx courtney, sry I didn’t know you were a girl, it worked for me very good…
August 15th, 2007 at 11:50 am
August 11th, 2007 at 10:12 am
another question, how did you get such an organized sitemap ?
thanx for your help
August 12th, 2007 at 12:57 pm
I actually used the sitemap plugin from Dagon Design to create the sitemap. You can get the plugin here:
http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/
August 11th, 2007 at 12:59 pm
Perhaps I’m not smart enough but I really struggle making UTW work on my blog. I do the tagging stuff manually. It’s to tell you. Even simpletag I’m not satisfied with.
August 12th, 2007 at 12:57 pm
UTW is quite hard to install! It will still help you a lot to do them manually, so keep doing them that way!
August 11th, 2007 at 4:29 pm
[…] is possible to use the original plugins (which was up to version 2.7) with UTW, but it involved jumping through a few unnecessary hoops which would decrease adoption and also prevent a number of useful linking […]
August 12th, 2007 at 8:59 am
Thanks for the easy to use instructions. I had been wondering why my tag pages weren’t picking up all the posts I’d tagged.
August 12th, 2007 at 12:59 pm
You’re welcome Dave! I see that the hack worked for you, I’m really glad!
August 13th, 2007 at 4:30 pm
Seems like a simple-enough way of increasing your page rank. I will have to give this a go, thanks.
August 14th, 2007 at 1:23 am
I’ve come across this plugin before, but your the first person to explain why I should install it. Great contribution to the plugin too.
Jamie
August 16th, 2007 at 1:56 pm
Thanks for the hack. I am using UTW on one of my blogs and I’d like to apply the hack and see if it works trouble-free.
August 16th, 2007 at 9:48 pm
This is a GREAT idea, Court! I’m trying to implement it on my blog, but I don’t have this line in my main index php:
I searched for (have_posts() and the_post(), but neither of those phrases show up anywhere.
If I email you a copy of my index php, could you show me what to replace?
August 18th, 2007 at 5:21 pm
[…] Hacking Ultimate Tag Warrior to Create Better Tag Pages from Courtney Tuttle. A very useful article about the popular WordPress plugin. […]
August 18th, 2007 at 7:25 pm
great info as usual I’m adding the hack now! You provide so much useful info here. Thank you Court.
August 22nd, 2007 at 1:48 pm
My previous page link at the bottom of the page is gone :-S I dont know why :-S
August 23rd, 2007 at 6:23 am
Court,
I love the benefits of UTW, but there’s one thing I don’t quite understand. Do the tags add the same benefit as the categories? For example, if I have a category named “Free Stuff,” would I also want to add a UTW tag for “Free Stuff?” Or do both the category and tag accomplish the same thing?
Also, I’d like to incorporate this UTW hack into the new SEO’d MistyLook theme (BTW, thanks again for doing that), but I haven’t been able to implement it because I don’t have the
(have_posts() and the_post()
line anywhere in my index.php file. It looks like that line has already been hacked for aside notes. Is there anyway to work the UTW hack in with the MistyLook theme?
August 25th, 2007 at 7:48 am
great info as usual I’m adding the hack now!
August 25th, 2007 at 7:49 am
Thanks for the easy to use instructions.
August 31st, 2007 at 11:44 pm
[…] to show at least 20 of the posts that were tagged with the perspective tags. The Hack source: Hacking Ultimate Tag Warrior To Create Better…, D-List | Make Money Online Free With […]