foreach((get_the_category()) as $cat) {
if (!($cat->cat_name=='Featured')) echo $cat->cat_name . ' ';
}
this is what has been recommended in the forums but its not working for me. I need to split off the echo piece like the following to show an image.
<li><img src="<?php bloginfo('template_url'); ?>/images/cats/<?php echo $category->slug ?>-icon.png"/> <?php echo $category->cat_name ?> </li>
any ideas?
Try this: