image depending on catagory
I am looking to have the catagory displayed as an image.
I am currently using the following code
<img src=”/images/<?php echo the_category() ?>.gif” height=”100″ width=”100″ />
but when this displays on the page it shows
.gif” height=”100″ width=”100″ />
and news is a link to the catagory. I am suspecting this is because the the_catagory variable. what would should I use?
- The topic ‘image depending on catagory’ is closed to new replies.