Limit Your WordPress Tag Cloud To Help Control PageRank Flow
Posted by Wesley LeFebvre on December 2, 2009
Have you ever wondered how to limit the number of tags displayed in the sidebar when using the default tag cloud widget in WordPress?
The default tag limit is fairly large; 45 tags in the latest version of WordPress. That can definitely affect your PageRank flow and link-to-text ratio some. A bit more useful on smaller blogs with less PageRank to spread around, however the net affect can still be helpful on high authority blogs.
I don’t actually use post tags on this blog (for no specific reason), but when I was trying to figure it out for another one of my blogs I thought for sure there would be a ton of how-tos on this issue considering Google Suggest displayed limit tag cloud wordpress in the search box as I typed it in. Nevertheless, I didn’t find good information.
I ended up having to figure it out by testing the code myself since I already new where to limit the font-size in the tag cloud, I figured it had to be close. Close it was, actually on the same line of code.
Find this file yourdomain.com/wp-includes/category-template.php and download it to your local machine using ftp or a similar protocol.
Then open it and find this code around line 525:
function wp_tag_cloud( $args = ” ) {
$defaults = array(
‘smallest’ => 8, ‘largest’ => 12, ‘unit’ => ‘pt’, ‘number’ => 45,
Change the 45 to equal the desired number of tags. As of this post I am using the most recent version of WordPress which is WordPress version 2.8.6.
After backing up your live file, just upload the modified category-template.php file back to your web server. Now the desired number of tags should be displayed.
Unfortunately, It appears you have to fix this every time you update WordPress, that is, unless anyone knows of a better way to do it?
Get the Latest SEO Tips via Email or RSS feed.
- Why Does My Blog Post Appear, Disappear, and Reappear In Google?
- SEO For Bloggers Video By Matt Cutts Of Google
- How Do You Find Time To Blog?
- Sorry - Some Valid Comments are Getting Marked as SPAM
- Is Your New Wordpress Blog Visible to the Search Engines?




Hampry
Thanks for the very helpful information about SEO.To day many of website use this WordPress them.Wordpress blog very popular and very use full.The default tag limit is fairly large 45 tags in the latest version of WordPress.
Chaibi Alaa
Hello,
That was very helpful for me, Thank you a lot
Wesley LeFebvre
Anytime, Chaibi!
Ibrahim
Thats great… I ate my mind solving the issue cause it was effecting the look of my site but i came to knw it has something to do with SEO as well.. HMnnmn… Useful info. Thanks Chabibi! Keep up the good work
Wesley LeFebvre
Hi Ibrahim!
Yeah, I don’t know why they make the font so big by default. Doesn’t make any sense to me. Anyway, glad to hear this post helped you solve the issue. Also, I took a look at your blog and I really like the theme you used!
best,
Robert
Thanks a lot. My tags cloud kept growing and pushing my remaining navigation options too far down the page.
Wesley LeFebvre
Hi Robert! No problem. Yeah, I hate it when that happens.
shaid
On your theme wp_tag_cloud(‘smallest=8&largest=22&number=30′);
you can change every parameter of tag cloud from here
Leave A Comment