Title: Problem content featured
Last modified: August 21, 2016

---

# Problem content featured

 *  [dodoland](https://wordpress.org/support/users/dodoland/)
 * (@dodoland)
 * [12 years ago](https://wordpress.org/support/topic/problem-content-featured/)
 * Hi,
    i use this code after post-title class to show category images next to the
   post title:
 * <?php
    foreach((get_the_category()) as $category) { echo ‘<img src=”‘.get_bloginfo(“
   template_url”).’/img/icon/’ . $category->cat_name . ‘.png” alt=”‘ . $category-
   >cat_name . ‘” />’; } ?>
 * it works in content.php but doesn’t works in content-featured.php
 * How can i fix it?
 * Thanks

The topic ‘Problem content featured’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/hueman/3.7.27/screenshot.png)
 * Hueman
 * [Support Threads](https://wordpress.org/support/theme/hueman/)
 * [Active Topics](https://wordpress.org/support/theme/hueman/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/hueman/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/hueman/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [dodoland](https://wordpress.org/support/users/dodoland/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/problem-content-featured/)
 * Status: not resolved