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 .
Here is what is needed to be done :-
Just use the following code :
<?php if ( function_exists(‘wp_tag_cloud’) ) : ?>
<?php wp_tag_cloud(‘smallest=8&largest=22&number=50&order=RAND&exclude=1,2′); ?>
<?php endif; ?>
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.
Do share your views with us
Similar articles
Many at times it is required to make a page full width i.e a page without any sidebar, in a WordPress blog. Almost all blogs have About , Contact, Service page, and you might not want to show sidebar on such pages. It is just that it doesn’t look professional to show sidebar on these pages. So if yo
Recently we shared How To Make Comments Do Follow In WordPress , but as many of the bloggers use Blogger as the platform, so now we are sharing, how to make comments do follow in Blogger.
You can perform two types of deletion in your MS Outlook, which are soft deletion and hard deletion. The soft deletion occurs when some mailbox item is moved to ‘Deleted Items’ folder of your Outlook. Contrary to that, hard deletion is one when you delete an email item without putting it into the ‘Deleted Items’ folder of your Outlook. That means, you can hard delete an item by pressing ‘Shift+Delete’ together.
In our earlier article we gave a tutorial on How To Setup Blog on Free Platforms? . So continuing that series, here in this article we will be teaching you to set up your own blog, i.e creating blog on your own domain. Setting up your own blog certainly gives you a lot of freedom. Well we will be di
Having a Featured Box in a blog is necessary when it comes to utilizing your older posts, also it helps in reducing bounce rates of the blog . So today we have started showing up featured posts in a box. Many of you must be knowing how to do this, but still I am sharing it, as it might be useful for
This is a guest post by Brian Scott who writes at FastCashFreelance . If you want to write for us then see Join DTP. When it comes to selling a product , nothing is more important than the quality of the product itself. If you have a good product, pitching it and attracting word-of-mouth advertising