Loop through featured images in a post
-
Is there a way to loop through a series of featured images in a post? I currently have an option for 10 images per post and I’d like to simply loop through them, check if they have an image and spit them out in a list element. I can do it using
MultiPostThumbnails::get_the_post_thumbnail( $post_type, $thumb_id, $post_id = null, $size = 'post-thumbnail', $attr = '' , $link_to_original = false )
over and over but I was hoping I could streamline it a bit, any ideas?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Loop through featured images in a post’ is closed to new replies.