I know you want a page that can show all of your tags in one place right? I know why would you want this, well its probably good for SEO that google can see all of your tags, and hey its good to see them all in once place, isnt it?
Now searching for plugins for this one didnt really show up anything useful, so i delved deep into the wordpress guru archives and dugg out some handy code that you can use to list all tags in one page.
Now to be able to do this easily you will also need to be able to chuck in a custom template in wordpress as well, and this is as easy as adding the following tag to the header of your custom page. You can usually create this by copying your page.php file into a new file and naming it something other than page, like moo.php or something creative like that… At the end of the day as with most programming it doesent really matter what the name is, but usually its good to make it something that you will remember at a later time.
1 2 3 | <?php /* Template Name: Show All Tags Page - Or other Template Name Here */ ?> |
Anyway Now that the template business is sorted, you can create a new Page in your wordpress blog called Tags or whatever you want really, and select the new template when creating the page.
The functions used for displaying the tags are as follows:
1 2 3 4 5 6 7 8 | <h3>Random remix tag cloud:</h3> <?php wp_tag_cloud('number=50&format=list&order=RAND'); ?> <h3>Most common tags:</h3> <?php wp_tag_cloud('number=50&format=list&orderby=count'); ?> <h3>All <?php if (function_exists('tagstats')) { tagstats(); } ?> tags in alphabetical order:</h3> <?php wp_tag_cloud('smallest=10&largest=10&number=0&format=list'); ?> |
Its as easy as that, see, it wasnt all that hard after all
Unless my explaining tools are not up to scratch, and well it is quite late in the evening and past my bed time and such things, so any questions please ask below.
Edit: You will also need to add the following function to your theme functions.php file. Im just trying to get this functioning again in the new version of wordpress 3.1.
1 2 3 4 5 6 7 8 9 | // total number of tags function tagstats() { global $wpdb; global $numtags; $wp_test = get_bloginfo ('version'); $numtags = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->term_taxonomy WHERE taxonomy = 'post_tag'"); if (0 < $numtags) $numtags = number_format($numtags); echo $numtags . ''; } |
You can see my giant tagging listage action live here: Tags.




kruxor on February 9th, 2011 
