Viewing 1 replies (of 1 total)
  • Plugin Author Chris Scott

    (@chrisscott)

    You can use MultiPostThumbnails::get_post_thumbnail_id() to get it. The arguments are: post type, id used to register the thumbnail, and the ID of the post you want to get the thumbnail ID for.

    e.g. MultiPostThumbnails::get_post_thumbnail_id('post', 'secondary-thumbnail', get_the_ID());

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Multiple Post Thumbnails] get_post_thumbnail_id()’ is closed to new replies.