Where intelligence is put to the test.

Nofollow WordPress Tag Cloud

John Crenshaw in seo

Oct 16

Have you added the rel=”nofollow” attribute to your WordPress tag cloud? Here’s a YouTube video from Matt Cutts talking about the need to add the attribute to tag clouds, where he explains that passing PageRank through the tag cloud links is probably not the most efficient way to do things.

Unfortunately, the WordPress tag cloud is generated via a function call to wp_tag_cloud and, as a result, you cannot simply add the rel=”nofollow” attribute like you would a traditional link.

So, I did a bit of searching and stumbled across a nofollow tag plugin at SmartBlogTips.com that will take care of this for you.

That said, I’m not big on adding plugins if it’s just a few lines of code. So, for those of you interested in doing this without the plugin, you can add the following lines of code to your functions.php file:

1
2
3
4
function add_nofollow_tag($sLink) {
return str_replace('<a href=', '<a rel="nofollow" href=', $sLink);
}
add_filter('wp_tag_cloud', 'add_nofollow_tag');

That’s it. Your WordPress tag cloud should now use the rel=”nofollow” attribute.

Thanks SmartBlogTips.com for the simple plugin!

[Image Source: Wordle.com]

Written by John Crenshaw

More from John Crenshaw
Choosing the Right Enterprise SEO Agency: 2026 Vetting Guide

Scaling organic search for a large organization is fundamentally different from small business SEO. You're not just optimizing a few dozen pages; you're managing tens of thousands, or even millions,…

How to Do a Website Audit That Actually Boosts Revenue

So, you need to do a website audit. At its core, this means systematically breaking down your site’s technical health, on-page content, and user experience to find out what’s holding…

7 Powerful YouTube Dashboard Examples to Master Your Channel in 2026

YouTube's native analytics are powerful, but they don't always tell the whole story or connect performance to your broader marketing goals. A well-designed dashboard transforms raw data into a strategic…

Data driven marketing strategies: A Practical Growth Guide

Data-driven marketing strategies live and die by the quality of your customer data. It's the bedrock. Without a solid foundation, you're just guessing. Confused about where to start? Get a…

How to Calculate Marketing ROI and Prove Your Real Impact

Let's cut right to the chase. The simplest way to figure out your marketing return on investment is with this formula: (Revenue - Marketing Investment) / Marketing Investment. This little…

The Ultimate 10-Point PPC Audit Checklist for 2025

Pouring money into PPC campaigns without regular, in-depth audits is like navigating a maze blindfolded. You're moving, but are you getting closer to your goal? Many businesses leak significant portions…

Ready to talk? We’re listening.

If you have questions we have answers. And probably some questions for you, too.

Let’s get after it!

Let's Get Started