Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #304305

    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/

    #304789

    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

    #304960

    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

    #304967

    Hi!

    Please try and let us know so we can mark this thread as resolved.

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.