WordPress.org

Ready to get started?Download WordPress

Forums

W4 Post List
[resolved] Thumbnail width and height (4 posts)

  1. Andrzej
    Member
    Posted 1 week ago #

    When using [post_thumbnail width="70" height="50"], the resulting list and HTML always has a 50x50 image. Any thoughts about this?

    Thanks

    https://wordpress.org/plugins/w4-post-list/

  2. Shazzad Hossain Khan
    Member
    Plugin Author

    Posted 1 week ago #

    You need to have appropriate image size, otherwise close matched size will be used. You can put a line in your themes functions.php - add_image_size( 'custom-size', 70, 50, true ); and regenerating all of your images using this plugin - http://wordpress.org/plugins/regenerate-thumbnails/.

  3. Andrzej
    Member
    Posted 1 week ago #

    Ah, now I understand. [post_thumbnail] uses the thumbnail generated from the post 'featured' image. Hence your suggestion for regenerating the thumbnail? I originally thought that your plugin auto-resizes the first image found in the post - my bad assumption.

    Thank you.

  4. Shazzad Hossain Khan
    Member
    Plugin Author

    Posted 1 week ago #

    You can use bulk regenerate thumbnails just to make sure expected size (70x50px) are created and exists.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.