Cat Images using the_title
Simple question really – I know WP has the built in function use category images per cat, so rather than going the plugin route I’m trying to use as many built-in functions to achieve the output i need without plugins.
I’m trying to use cat images, and can’t find within the codex what I’d need to use in order to call a category image.
The code is currently as follows:
<a class="title" href="<?php the_permalink() ?>" style="text-decoration:none;" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title('-image-'); ?></a>
It’s the (-image-) bit that I need to fill. I thought something like $catID might work as I want to display the image based on the cat, but I’m not sure.
Thanks in advance
EDIT: I found this bit:
But it doesn’t explain in the example what I’d add to call the image
- The topic ‘Cat Images using the_title’ is closed to new replies.