The initial idea was to show some icons next to the category name in the sidebar listing. Later I went one step further and made it possible to create a table list of categories.
How it works -
- Icons are simply jpeg files for the purpose of this plugin. You need one jpeg file for each category you have. The name of each these files should match the category-slug (Wordpress 2.3+) or category-nicename (pre Wordpress 2.3) associated with the category.
You can find out what the slug or nicename by going to Manage-Categories from the Wordpress menu.A recommended dimensions of the icon files is 16×16.
- Having got your icon set, download the plugin and load into your Wordpress plugins directory.
Before activating the plugin, make some changes to the file category-icon-images.php.
Depending upon version of plugin - versions upto 0.8, edit the file and change some default URLs - modifiy anything that reads reads “http://nationaljoke.com/home/images/ico” to the location of your icon directory on your server. Also change the reference to “http://nationaljoke.com/home/category/” to your default permalink structure.
From version to 0.9, you can edit these settings by changing the two lines at the top which read
$default_permalink = “http://nationaljoke.com/home/category/”;
$url_icon_directory = “http://nationaljoke.com/home/images/ico/”; - Activate the plugin.
- Edit your templates, to show a category listing with icons -
Upto versions 0.8 of the plugins, you can show a category list in the sidebar with the icons using
<?php aps_cat_icon_list(); ?>
From version 0.9, use
<?php category_icon_list(SHOW_POST_COUNT); ?>
SHOW_POST_COUNT is by default set to 0 and means that the post count is not shown next to each category name, if you want to show the post count, then pass in 1 to the above call.
- To show a category table listing -
Upto versions 0.8, use
<?php tab_disp_cat_icons(); ?>
From version 0.9, use
<?php category_icon_table(ICONS_PER_COL, SHOW_POST_COUNT); ?>
This will by default show a table of 5 columns, the number of categories shown per column in the table is set by ICONS_PER_COL (default 6).
And once again SHOW_POST_COUNT is set to default of 0, meaning post count is not shown next to the category name. Set to 1, it will show the post count next to the category name.
Download
category_icon_images_v1.0.zip - Wordpress 2.3+
Latest version 1.0, minor tidy up of comments and code from earlier version
Older Versions
category_icon_images-v0.9.zip - Wordpres 2.3+
category_icon_images-v0.8.zip - Wordpres 2.3+
category_icon_images-v0.6.zip - For Wordpress pre 2.3
Other Stuff
Random Image Gallery
Show HiLo Posts
BlueTV theme

