Different featured image size for recent posts (2 posts)

  1. Alpatrose
    Posted 3 years ago #

    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.

  2. bcworkz
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic