Title: Incorrect thumbnail loading in shortcode list
Last modified: July 3, 2020

---

# Incorrect thumbnail loading in shortcode list

 *  Resolved [jj](https://wordpress.org/support/users/jjjoel/)
 * (@jjjoel)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-loading-in-shortcode-list/)
 * We are using the my_content shortcode to display a list of services, but have
   noticed recently that some posts in the list display the current page’s featured
   image instead of the post’s thumbnail. We use the {medium} tag in the list template
   and noticed that when changing the tag to {full} they display the correct image.
 * After a bit of debugging it looks to be due to line 218 in mcm-view-custom-posts.
   php:
 * `$p[$size] = get_the_post_thumbnail( get_the_ID(), $size, array( 'class'=>'','
   alt'=>trim( strip_tags( get_the_title() ) ), 'title'=>'' ) );`
 * Changing get_the_ID() to the $id variable set earlier in that bit of code seems
   to fix (not quite sure why, but it works!). Would be good if the fix could be
   released as part of the main plugin.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * (@joedolson)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-loading-in-shortcode-list/#post-13069736)
 * Thanks for reporting! Will add this fix to the next release.

Viewing 1 replies (of 1 total)

The topic ‘Incorrect thumbnail loading in shortcode list’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/my-content-management_699eca.svg)
 * [My Content Management](https://wordpress.org/plugins/my-content-management/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/my-content-management/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/my-content-management/)
 * [Active Topics](https://wordpress.org/support/plugin/my-content-management/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/my-content-management/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/my-content-management/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Joe Dolson](https://wordpress.org/support/users/joedolson/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/incorrect-thumbnail-loading-in-shortcode-list/#post-13069736)
 * Status: resolved