I would like to add little icons on each post that represent the category that post is in, like what you can do with Geeklog or PHP Nuke. I did a search of these forums and found that there was a simple hack for adding category icons (http://wordpress.org/support/5/824), and I tried that hack, which involved adding this code to the index.php file:
<img src="<?php the_category() ?>.gif" alt="<?php the_category() ?>">
This did not work. I followed the directions of the hack exactly and uploaded my images in the right place and was careful to get my upper/lower case letters correct because the file names are case sensitive. However, instead of an image, I got a broken image and the category name beside a bullet, and
.gif">trailing off to the side. I don’t understand why this hack didn’t work and I decided to start a new thread because that old thread about category icons hasn’t been updated since october. Could someone please tell me if it’s possible to add Category Icons, and if so, how? Thank you SO much!
- You must be logged in to reply to this topic.