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

Pulling featured image id's #65

Closed jameshiggins closed 9 years ago

jameshiggins commented 9 years ago

Hi,

I'm using a slider which requests image ids to create the slides.

How could I request individually or in an array the ids from registered post thumbnails?

Thanks,

chrisscott commented 9 years ago

You can use the MultiPostThumbnails:: get_post_thumbnail_id() (more info) function to get the ID of any registered thumbnail for a given post.

jameshiggins commented 9 years ago

Thanks, figured it out.

-J

James Higgins Web Developer

http://jameshiggins.ca/

British Columbia, Canada

[image: jamesallenhiggins] [image: Displaying linkedin_sig.gif] http://www.linkedin.com/pub/james-higgins/27/9aa/85

On Mon, Jul 27, 2015 at 4:34 PM, Chris Scott notifications@github.com wrote:

You can use the MultiPostThumbnails:: get_post_thumbnail_id() (more info https://github.com/voceconnect/multi-post-thumbnails/wiki/Functions-and-Template-Tags#get_post_thumbnail_id) function to get the ID of any registered thumbnail for a given post.

— Reply to this email directly or view it on GitHub https://github.com/voceconnect/multi-post-thumbnails/issues/65#issuecomment-125349063 .