voceconnect / multi-post-thumbnails

Adds multiple post thumbnails to a post type. If you've ever wanted more than one Featured Image on a post, this plugin is for you.
143 stars 63 forks source link

Post thumbnails not showing front as well as admin area #135

Open hysyshub opened 5 years ago

hysyshub commented 5 years ago

Hello, I have installed this plugin sometimes its working fine but most of the time it does not display the image in front area as well as admin area. Secondary image uploaded successfully but not showing anywhere. I have to have call get_post_meta method to accomplish this .

Kindly suggest.

chrisscott commented 5 years ago

Are you using MultiPostThumbnails::the_post_thumbnail() in your theme to display the thumbnail?

hysyshub commented 5 years ago

Yes

On Fri, 7 Dec 2018, 20:42 Chris Scott <notifications@github.com wrote:

Are you using MultiPostThumbnails::the_post_thumbnail() https://github.com/voceconnect/multi-post-thumbnails/wiki#display-the-thumbnail in your theme to display the thumbnail?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/voceconnect/multi-post-thumbnails/issues/135#issuecomment-445262093, or mute the thread https://github.com/notifications/unsubscribe-auth/ApdfCmCX2o_VX3VxaQCE8NLrD3B5yQE7ks5u2oVGgaJpZM4ZH_-p .

chrisscott commented 5 years ago

Can you post the code?

LushDesign commented 5 years ago

Hello, I think I am having the same issue. This is the code I posted in the code snippet plugin for WP.

if (class_exists('MultiPostThumbnails')) {

new MultiPostThumbnails(array( 'label' => 'Secondary Image', 'id' => 'secondary-image', 'post_type' => 'post' ) );

}

I think there is something else I am supposed to do? MultiPostThumbnails::the_post_thumbnail() — does this go in the post somewhere? Total newbie—sorry if the question doesn't make sense :-) I can see the second image on the post edit page below the featured image thumbnail. Can't figure out how to get it to post on the homepage (loop?) Thx!