The get_children code sample below returns an array of the images attached to a post:
$images =& get_children( 'post_type=attachment&post_mime_type=image' );
What I’d like to do is get the thumbnails of whatever photos are returned, using the dimensions set in Settings => Miscellaneous => Thumbnail size. Is there a clear way to do this? A function I can apply to the returned values?
- The topic ‘Getting thumbnails of images attached to a post?’ is closed to new replies.