Is there a way to determine the orientation of the image when using the post_thumbnail functionality in WordPress? I’ve got two different sizes created and I need to use the appropriate one, i.e.
the_post_thumbnail( 'article-pic-horizontal' );
or
the_post_thumbnail( 'article-pic-vertical' );
Open to a better suggestion, but here’s what ended up working for me: