• Hi,
    Not all of my featured images are the same ratio, and being limited to a fixed post width some of them are taller (or shorter) than others. Having the posts displaying horizontally it makes it look untidy.
    Is it possible to force the featured image ratio to display in the loop?

    Thank you in advance!
    Kris

Viewing 3 replies - 1 through 3 (of 3 total)
  • Because you uploaded them in different sizes. If you want them all to be the same size, make all of them have the same width and height before uploading to post.

    Thread Starter Kris

    (@omgb)

    Thank you, but that doesn’t answer my question.
    I’m perfectly aware why this is happening and that I could edit the image before uploading.
    I’m looking for a solution to save me all this trouble

    Thread Starter Kris

    (@omgb)

    ok, what i did is:

    added a new image size in function.php
    add_image_size('mynewsize', 250, 200, true);

    pasted this in loop.php to replace the old thumbnail
    <?php the_post_thumbnail('mynewsize'); ?>

    it’s all good, but you need to reupload all the images again

    i’d rather to have something like this:
    <?php the_post_thumbnail('i_want_the_same_size_for_all_my_already_uploaded_images_and_i_don't_care'); ?> ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘featured images ratio’ is closed to new replies.