WordPress.org

Ready to get started?Download WordPress

Forums

Posts for Page
[resolved] Featured Image Resizing (6 posts)

  1. ibc3
    Member
    Posted 1 year ago #

    Hi! I am using Posts for Page v2.1, and here is my shortcode:

    [posts-for-page order_by="date" order="DESC" num="10" use_wp_excerpt="true" read_more=" ยป" hide_post_title="false"]

    I am having trouble displaying images in the thumbnail. Some images I want to display are rectangular, and although I have WP set to not force the thumbnail to be square in the Settings | Media, they keep displaying that way. I unchecked 'Crop thumbnail to exact dimensions (normally thumbnails are proportional)', although it still has 150 x 150.

    When I upload the image, it looks rectangular as it should & the dimensions are 150 x 88, but not when I insert it into the Featured Image. The Featured Image enlarges the image & takes the middle of it, cropping the rest off.

    This may not have anything to do with the plug-in, but I was wondering if you have any suggestions or if there is a setting/customization in the plugin that might help? I tried both force_image_width="150" & force_image_height="150" (not at the same time), but it didn't seem to help.

    Thanks!

    http://wordpress.org/extend/plugins/posts-for-page/

  2. sihibbs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi do you have a link I can take a look at?

  3. ibc3
    Member
    Posted 1 year ago #

    Hi! Yes, it's vahi.org. This page has the thumbnails.

    I sort of figured it out, but it still doesn't work exactly as I was hoping. I was able to modify the thumbnail of some of the graphics, but some graphics we want to use as thumbnails are vertical rectangles. So, by using the force_image_width="150", that fixes the rectangular thumbnail images that we want to use that are horizontal. But I can't use force_image_height="150" at the same time b/c then it forces the thumbnail to be square & crops it. Basically, I want to be able to shrink the image to fit into a 150 x 150 thumbnail, regardless of whether it is horizontal or vertical. Does that make sense?

    For example, you can look at the Barefoot Mountain Farms post on vahi.org. If you click through, you'll see the graphic that I really want to display. But, I cropped it to make the thumbnail for the home page.

    Thanks for looking at this!

  4. sihibbs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi yes I see what you mean but without getting the plugin to actually do a physical rescale of the image to new dimensions what you are doing is probably the best solution there is at the moment.

    It actually looks okay to me, not sure what else to suggest, sorry I cant be of more help.

    I may look into the rescaling in future, but the whole images thing is a lot more complicated than you might think due to the way WordPress handles them (as content, or attachments and thumbnails), so it would need a lot of work :)

  5. ibc3
    Member
    Posted 1 year ago #

    I totally understand. Thanks for looking at it!

  6. sihibbs
    Member
    Plugin Author

    Posted 1 year ago #

    No problem, nice site btw :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic