WordPress.org

Ready to get started?Download WordPress

Forums

Network Latest Posts
[resolved] Thumbnail sizing (6 posts)

  1. seo-uk
    Member
    Posted 1 year ago #

    Hello,

    I cant seem to get rid of an image size of 150x150. I even tried changing the WP default in the functions file.. This is what I have in the SC:

    [nlposts number_posts=1 title_only=false ignore_blog=1 thumbnail=true custom_post_type=page category=bff paginate=false posts_per_page=4 excerpt_length=30 auto_excerpt=false thumbnail_wh=200x111 display_type=block]

    Downloaded the plugin this morning so I guess it is the latest version.

    Help appreciated..

    Kev

    http://wordpress.org/extend/plugins/network-latest-posts/

  2. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hello Kev,

    Well, WordPress doesn't resize thumbnails, it just crops them, it means if you want your thumbnails to display in 200px width by 111px height, the featured images must be bigger than 200x111 otherwise you won't see them in those proportions.

    Please check if your posts featured images are bigger than the size you want the thumbnail to display and let me know if it works.

    Cheers.

  3. seo-uk
    Member
    Posted 1 year ago #

    Hello,

    Thank you for your reply. The featured images are 940x520 and the dimensions used for NLP is proportionate at 200x111. The site is in development but you can take a look at it here http://bit.ly/P2f7EV

    Kev

  4. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Kev,

    Well I was investigating this issue and it seems it's the way WordPress works, it's not a problem related to NLPosts but to any plugin using WordPress hooks to pull post thumbnails.

    Actually the only solution to this is to change the default thumbnail sizes under Settings > Media > Thumbnail Size (and check crop thumbnail to exact dimensions). Then use the plugin Regenerate Thumbnails to recreate all your thumbnails.

    By default WordPress set thumbnails to 150x150, once they've been created that way, using thumbnail sizes within any plugin functions won't affect this size, so when you're using 200x111 you won't see them 200x111 but (a cropped width)x111px (because it crops 150 to 111 px height).

    I hope this helps, and sorry for not being able to provide a better solution.

  5. seo-uk
    Member
    Posted 1 year ago #

    Hi Jose..

    That works so I am really pleased.. Thank you for your effort to resolve the issue and to teach me something I did not know! I would recommend the "AJAX Thumbnail Rebuild" to perform the task after changing the settings..

    Thanks again..

  6. Jose Luis SAYAGO
    Member
    Plugin Author

    Posted 1 year ago #

    That's great news Kev,

    I'm glad it worked, I'm linking to that plugin so others following this thread can check it out. Thanks for sharing: AJAX Thumbnail Rebuild.

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.