How to use a template tag to display icons with Category Icons Lite

You must have at least v1.0.4. Just copy and paste this code in your template file (index.php, loop.php, etc) :

<?php if (function_exists('get_cat_icon_lite')) echo get_cat_icon_lite();?>

You can also give it the category id. If you want to display the icon for the category id number 3, you’d do that :

<?php echo get_cat_icon_lite(3); ?>

Brand new plugin : Category Icons Lite

I wanted it to be simple to use : no more template tags !

It’ll work with a lot of themes. Just try. If you have an issue, make sure your template has the post title preceded by the permalink and its title :

<a href="<?php the_permalink() ?>" ... title="<?php the_title(); ?>">
<?php the_title(); ?>

Or :

<a title="<?php the_title(); ?>" ... href="<?php the_permalink() ?>">
<?php the_title(); ?>

For example, it’ll not work with the nice prototype theme, because it does not use the_permalink & the_title filters (from what I’ve seen).

How to use it :

1. Upload an image as usual via the Media Menu
2. Select the category you want to assign to the image
3. Save the changes

screenshot Brand new plugin : Category Icons Lite

Category Icons Lite

That’s it !

Download it now ! Category Icons Lite