I am using custom post types "listings" and I have a category called "type" and 3 sub cats, "available", "pending", "sold".
I want to display an image/icon on each post in the loop (not the single-listings.php) but the archive view, that corresponds to it's category. Take a look at woothemes' Estate for an example. They have an image over the featured image that says "on show".
Any thoughts on how to go about this? or a plugin that might do something similar?
thanks!
I found this code reference:
<?php $cats = get_the_category(); echo $cats[0]->category_name;?>">
And then it said to style using the category as a class in the css, but no go. It returns nothing - wondering if custom post type cats need to be handled differently?
