Limit number of tags in WordPress tag cloud widget

If your WordPress website has a lot of tags (and growing), you may probably struggle with bad looking messy list inside the WordPress tag cloud widget. But you would rather show descent number of tags instead of removing the widget, right?

This simple snippet will do a trick:

That’s it! Just paste this piece of code inside your theme functions.php file.


Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *