Tagged: you may also like
Hi all.
I have changed some of my featured images from Landscape to Portrait, (I think it looks better on my blog page here:
http://shutterliving.com/recent-work/)
HOWEVER, now at the bottom of some of my posts the section where it says ‘You may also like’ now has the images rotated in the portrate mode (which looks ugly i think),
Is there anyway I can keep the same orientation as it was before?
(may be remove these specific posts from being included in this section)
You can see it here at the bottom of this page: although it looks worce when viewed on an iPhone?
http://shutterliving.com/president-francois-hollande/
Hi Jamie A!
You could use tags to exclude certain posts from the “you may also like” section. Open up wp-content/themes/enfold/includes/related-posts.php and replace:
'tag__in' => $tag_ids,
with
'tag__in' => $tag_ids,
'tag__not_in' => array(20),
Instead of 20 insert the id of the tag you want to use to mark the posts with portrait images. If you don’t know how to get the id of the tag please read http://www.wpbeginner.com/beginners-guide/how-to-find-post-category-tag-comments-or-user-id-in-wordpress/
Best regards,
Peter
thanks again Peter, I think I will do this one another day but i will mark as resolves as soon as I get the chance to take your advice.
best Jamie