our thoughts

Tags in columns plugin

October 15 2008
by Rachel

With Wordpress now having built-in tag support, I’ve updated the plugin to show a list of your tags in columns that I originally created to work with Ultimate Tag Warrior.

The plugin will list Wordpress tags in columns and in vertical groups.

Installation

  1. Download the plugin and rename from cre8d_tags_in_columns.txt to cre8d_tags_in_columns.php
  2. Upload the plugin to your plugins directory and activate the plugin
  3. Access the listing by including echo cre8d_tag_columns(); somewhere in your template. This will give, by default, 3 columns and tags grouped vertically in 5s. If you wanted 2 columns and groups of ten, use: echo cre8d_tag_columns(2,10); and so forth.
  4. Add to your stylesheet the following:

    .list-column { float: left; width: 160px; margin: 0 5px; }
    .list-column ul { margin-left: 0; padding-left: 0; }
    .list-column ul li { list-style-type: none; }
    .spacer { margin-bottom: 20px; }

  5. Optionally tweak the width of .list-column to suit your blog’s layout. You may like to change the vertical spacing (.spacer) between groups too.

your thoughts

Fer

October 16 2008

THANK YOU! I’ve been waiting for this for soooo long!
Thank you!

Brad

November 21 2008

Great plugin! I had to make a small modification I wanted to share. For anyone wanting to use this plugin to display tags on a single post just change this line:

$tags = get_tags(array(’orderby’=>name,’order’=>ASC,’number’=>100000));

this this:

$tags = get_the_tags();

and now the plugin will only pull back tags for the specific post you call the function on.

add a thought

Elsewhere: Skype MSN Messenger Twitter Facebook