First instance
-
Hi,
how exactly do i get the first “thumbnail” attach to a post ?
I have multiple images attache on my post.
But i need to just take the first image in thumbnail size.
If have got this code that display all attached images in thumbnail size :$attachments = new Attachments( 'my_attachments' ); if( $attachments->exist() ) : while( $attachments->get() ) : $attachments->image( 'thumbnail' )); endwhile; endif;
thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘First instance’ is closed to new replies.