Support » Plugins » Hacks » Different featured image size for recent posts

  • Hello all, hope you all doing well (:
    So, I searched for this everywhere and I did find what I was looking for.
    What I need is that my recent posts (Say, the 3 latest posts) have a different featured image size. Actually I want to have bigger featured images for my latest posts.

    Thank you and sorry if this was already asked.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    The specifics would depend on how your theme outputs the html for the image, but generally, you would use a conditional to either specify one image size or the other based on a counter value. The counter is set to 0 before the loop and incremented each time a large image is output.

    If you haven’t done so already, consider developing a child theme so your changes are not lost when you update you theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Different featured image size for recent posts’ is closed to new replies.