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.