How To Make A Tag Cloud Page on Wordpress

Posted on November 16, 2008
Filed Under Design & SEO, General Thoughts and How-To, Reviews and Opinions |

Recently I wanted to make a tag cloud into a page and I went exploring for a couple of options.  I found several choices and try each of them, but each were not each to use and implement or required more plug-ins.  I didn’t want to install any additional plug-ins, but still wanted a to have one easy code to copy and paste into my page template that would generate a tag cloud on a page.  The following code is my own creation and seems to work great for Wordpress and makes a generated tag cloud page without needing to know any additional code, make any other templates, or install any other plug-ins.

How To Make A Tag Cloud Page on Wordpress:  No Additional plug-ins, templates, or code knowledge required.

Install:

1. Copy the following code:

<?php if (is_page(’Tags’)) { $tag = wp_tag_cloud(’smallest=8&largest=22′); echo($tag); } ?>

2. Paste this code into your page template inside the content <div> tags.  To locate this, you click on the main design tab of the Wordpress Admin, then click on theme editor.  There will be a file selection to the right that says page template, or page.php.  This is the file you want to put it in if you want to make it a page.  (If you want to make it a post it is much easier and doesn’t require the say code.  I’ll make another post about that code.)

3. Click to save the file.

4. Make a new page called ‘Tags’ and leave the content blank, or put a headline or tag directory description if you want for SEO purposes.  Publish this page and you’ll be done.

That’s It, Your Done!

How it works and what is going on? There are several parts to this and I’ll explain why I used each piece.

This solution presented the option and could be used Wordpress for making a tag cloud page.  You will not need to make a new page or template, upload any new files, install any new plug-ins, or any further code knowledge.  I hope this helps other Wordpress users who want to make a tag cloud page.

Modifications:

1. You can use any page title you want, but keep it to one word, and make sure to change the if tag to ‘yourpagetitle’ instead of ‘Tags’.  I use a page called ‘Sports’ on another site and the page title is also Sports.

2. You can modify the size and some of other parameters inside of the tag cloud and how it displays.

For comment order instead of name order you can use this code:

'smallest=8&largest=22&number=30&orderby=count'

You can view other options for tag clouds at the Wordpress Codex.


Comments

Leave a Reply