WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] How to customize the size of the thumbnails? (43 posts)

  1. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all,

    I just released 4.0.1, and changed the way you specify that you want thumbnails generated on the fly. Instead of the yarpp_set_option code I mentioned above, simply add define('YARPP_GENERATE_THUMBNAILS', true); to your theme.

    More info in the FAQ.

  2. raonip
    Member
    Posted 1 year ago #

    Hi Mitcho,

    Would be great if we could choose another already built image like Thumbnail, Medium, Large to use. Because like my website I have Thousands of images already....It would be better just to use an image smaller then the actual FULL image and scale with CSS.....

    Like for me I would just use my Thumbnail image to use in Related Posts.......

    the way you did we have the option to Regenerate ALL images, Regenerate on the fly (wich has performance issues) or Use the Full image file....

    Would be great if we could just choose an already image like WordPress default Thumbnail.

    Thanks again!!

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @raonip if you specify a size using add_image_size('yarpp-thumbnails'...) which is exactly the same dimensions as one of those other sizes that WordPress already uses, then it won't regenerate thumbnails but instead will use the same ones. :)

  4. raonip
    Member
    Posted 1 year ago #

    Hi Mitcho.....nice! That should work....BUT I have just tried and still use the FULL image!!!

    Any clue???

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @raonip what exactly did you do? Did you change your image size using add_image_size? Did you turn on the GENERATE_THUMBNAILS or try the Regenerate Thumbnails plugin?

  6. raonip
    Member
    Posted 1 year ago #

    Hi,

    I used the add_image_size('yarpp-thumbnails'...) with the same size as my THUMBNAIL size and still get the full size image....

    Any clue?!

    Thanks!

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I suggest you try adding GENERATE_THUMBNAILS or using the Regenerate Thumbnails plugin. In particular, if you use GENERATE_THUMBNAILS, it should end up recognizing that the right size thumbnail already exists, and not doing any work, so it shouldn't have performance issues.

  8. raonip
    Member
    Posted 1 year ago #

    Hi, if I use GENERATE_THUMBNAILS, how can I know if is using the already built image or if is generating again?!

    Did you test to use add_image_size('yarpp-thumbnails'...) the same size as another image size you already have in your site? Does it work for you?

    Thanks

  9. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    You can check whether the same images are being reused by checking the img src URL that is being called in the HTML.

  10. xiabolai
    Member
    Posted 1 year ago #

    Hi, this is also an issue for me. I can set the size of the thumbnail, that is not the problem. The problem is YARPP is using the full-size image, not the thumbnail from the built-in WP thumbnail setting. You really need to set the plugin to pull the thumbnail from the thumbnail in the WP media settings like this plugin does: http://wordpress.org/extend/plugins/related-posts-thumbnails/

    Thanks

  11. tnehub
    Member
    Posted 11 months ago #

    To increase the number of lines of the thumbnail title from 2 to 3

    1. Go to yet-another-related-posts-plugin/styles-thumbnails.php

    2. Each line has a height of 1.4em so go to line 45 and change max height to 4.8em to get 3 lines;

    max-height: 4.2em;

  12. kdunham
    Member
    Posted 11 months ago #

    I'm trying to read through the threads on whether or not there is a solution for the thumbnail problem (squishing instead of using the square thumbnail that WP creates). What is the fix? Can someone point me to the solution as I think I might like this plugin. But don't like the way it displays its images.

    Thanks.

  13. kdunham
    Member
    Posted 11 months ago #

    Okay...I figured it out. I needed to regenerate the thumbnails and have "crop" turned on so the 120 x120 thumbnails for YARP wouldn't be distorted...but cropped when they appear at the bottom of the post.

    So far so good. I like this much better than the other 'related posts' plugin I was using.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.