Title: Display wrong image
Last modified: August 21, 2016

---

# Display wrong image

 *  Resolved [juan2machado](https://wordpress.org/support/users/juan2machado/)
 * (@juan2machado)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/display-wrong-image/)
 * Hi there.
 * Great plugin. It’s really a time saver.
 * I’m trying to display the image assigned to a specific category on the specific
   category generated page, but when placing the php code to the template, or placing
   the shortcode (with do_shortcode), it displays the featured image of the latest
   published post on that category. In the case of empty categories, it displays
   the featured image of a post that isn’t even related/assigned to that category(
   it’s empty though).
 * Please, do let me know how can I display the right image of the right category.
 * Keep the good work.
 * Regards.
 * [https://wordpress.org/plugins/category-featured-images/](https://wordpress.org/plugins/category-featured-images/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mat](https://wordpress.org/support/users/blocknotes/)
 * (@blocknotes)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/display-wrong-image/#post-5162192)
 * Hi Juan.
    Are you calling the PHP function outside the WordPress post loop? BTW,
   with the next version I should improve that part. I add a check to see if the
   function (or shortcode) is called in a single post or inside a category archive
   page.

Viewing 1 replies (of 1 total)

The topic ‘Display wrong image’ is closed to new replies.

 * ![](https://ps.w.org/category-featured-images/assets/icon-256x256.png?rev=1007316)
 * [Category Featured Images](https://wordpress.org/plugins/category-featured-images/)
 * [Support Threads](https://wordpress.org/support/plugin/category-featured-images/)
 * [Active Topics](https://wordpress.org/support/plugin/category-featured-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-featured-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-featured-images/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mat](https://wordpress.org/support/users/blocknotes/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/display-wrong-image/#post-5162192)
 * Status: resolved