Hi, All -
Is there a way to swap out content blocks with code? I have a client who is really enjoying their new site but hasn’t grasped the concept of image orinentation! The site looks fabulous when they post a featured image taken in landscape mode - but falls apart when they use a portrait pic.
In an ideal world I want to be able to swap the content block based on the dimensions of the featured image. When it’s in landscape it can appear above the post as normal. When they use a portrait shot, however, I want to use another block which displays the image at the side of the post.
It should be easy to create a conditional based on the image post thumbnail size - but how would I swap the blocks?
Can it be done?