HOW TO LIMIT NUMBER OF TAGS IN TAG CLOUD

Recently we published an article to show random tags and posts in wordpress without using any plugin. But if you use too many tags the random tag cloud will become messy, so limiting maximum number of tags to be displayed in the tag cloud is required. If you are using the code that was written in the last post, you would just need to do a little bit of tweaking.

Wordpress

Here is what is needed to be done :-

Just use the following code :

Notice that in the above code I have added ‘number=50′ – It limits the maximum no. of tags to be displayed in the cloud to 50. You can use any number you want instead of 50.

0 comments:

Post a Comment