Some people really would like to have a tag page. Well, on this tutorial, you will be able to add a tag cloud to a page without making a template or even using a plugin.
You can use the template where you create a page and can select it, but perhaps you want to add it to another page, like the 404 page. You will have to be familiar with the WordPress loop and your theme’s files to be able to complete this tutorial.
Step 1. Take a template that you already have for your existing theme for your site, preferably page.php. Copy that template’s code into a text editor like Notepad.
Step 2. Paste the following code in where you put your content. Instead of the WordPress loop, you will include the following code. Note (again):Make sure you are in the HTML format instead of Rich Text. The ‘number=0′ means that you want all of the tags to show. Note: You can also create a new page, and have the following code within a template and choose that template format.
<?php wp_tag_cloud('number=0'); ?>
Make sure to label the template as well. If you are not sure how to, at the beginning of the file, include the following:
<?php
/*
Template Name: Tag Cloud Page
*/
?>
You can add header tags (h2 or h3, whichever you use within your content) before it, or you can do without the header tags as the page will already be defined with its own when you publish it.
Step 3. Save file as a different name in the .php extension. Please note that you may need to choose “All Files” to properly name the file or the actual extension will be .txt (text file.)
Step 4. Upload the template to your theme’s folder.
Step 5. Create a new page in your WordPress backend and choose the new template your just loaded up.
Very simple, right?
01-14-2012 |









