Top Ad unit 728 × 90

Show Category Icons


Pictures make a site more lively which is a given which is why blogger might want to associate pictures with their category. This plugin lets you associate a specific icon of your choice to a designated category. You can use this plugin to list categories by icon with or without names, and much more.
For the next version of WPLift, Im working on a new theme and had the need to use icons for each category as a visual clue to help people identify content on the homepage. Fortunately this is pretty easy to accomplish in WordPress as each category has its own ID number which we can use to display the images.
1<?php
2foreach((get_the_category()) as $category) {
3    echo '<img src="http://example.com/images/' $category->cat_ID .'.jpg" alt="' $category->cat_name . '" />';
4}
5?>
  • displays one or more icons in front of your post title or wherever you want
  • displays icons in the sidebar, with or without the category name, with or without the help of the widget
  • includes a widget.
  • you can make rollover with the icons in the sidebar
  • is able to display category icons in your RSS
Show Category Icons Reviewed by Unknown on 2:05 AM Rating: 5

No comments:

All Rights Reserved by Boca Raton Real Estate © 2014 - 2015
Powered By Blogger, Designed by Sweetheme

Contact Form

Name

Email *

Message *

Powered by Blogger.