WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Always display default thumbnails picture, not display post thumbnails (16 posts)

  1. Enterpr1se
    Member
    Posted 1 year ago #

    Hi,

    I just updated to 4.0beta and then 4.0 offical release.
    I found that the it always load default thumbnails picture.
    Did yarrp automatically found the thumbnails?

    Thx

    My website is : http://www.enterpr1se.info

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    YARPP uses the post thumbnails feature, also known as "featured images": http://en.support.wordpress.com/featured-images/#setting-a-featured-image

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @Enterpr1se, were you able to resolve this issue?

  4. Enterpr1se
    Member
    Posted 1 year ago #

    Hi,

    Yes, I found that if the post have featured images, it will have a thumbnails.
    But my theme will auto create a 150x150 thumbnail for each post, did I need to send a request to them to make the changes?

    And just an opinion, if yarp can choose featured images and first choose, and if the post doesn't have any featured images, then the first image of that post will act as the thumbnail.
    Will it better?

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Glad it is working in the cases where you have thumbnails set. Are you asking about changing the size of the thumbnail? What theme are you using?

    Finding the first image and using it as the thumbnail is something another plugin can come in and take care of... in fact, it looks like there is a plugin that does that: http://wordpress.org/extend/plugins/auto-post-thumbnail/

  6. Enterpr1se
    Member
    Posted 1 year ago #

    I am using WP-Prosper theme
    http://www.solostream.com/wordpress-themes/wp-prosper/

    This theme has YARPP templates support already.
    And it will generate image to different size, included 150x150 thumbnail.

    YARPP use a 1:1 thumbnail box, so it will change Aspect Ratio from 4:3 to 1:1, so the images are not correctly display.
    How to solve this?
    Thx

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    If that theme includes a YARPP template, I suggest you continue to use that theme's builtin template. Choose "custom" in the YARPP settings and then choose that theme's template. That *should* behave exactly the same as it did before.

    Just in case, here's the latest beta which fixes some things, which I suggest you upgrade to:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.4.0.1b3.zip

  8. omnimobile
    Member
    Posted 1 year ago #

    my problem is it only shows default thumbnail, i do not use thefeatured image of wordpress but instead i use the get image plugin, hope there is a work around on this that YARP will be able to seamlessly work with get image, sample of site im developing that uses YARP is http://sharepirate.com

  9. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @omnimobile if you're not using the featured images feature of WordPress, YARPP will not support it. When I say "featured image", I mean those that are set like this: http://en.support.wordpress.com/featured-images/#setting-a-featured-image

    Like I mentioned above, it may be possible to get other image systems to feed this process, but that's the domain of other plugins, like the Auto Post Thumbnail plugin.

    What is this "get image" plugin you mentioned?

  10. Enterpr1se
    Member
    Posted 1 year ago #

    My theme will auto generate different size images.

    After I upload the image for example evaq.jpg, it will auto generate like
    evaq-150x150.jpg
    evaq-300x200.jpg
    evaq-315x200.jpg

    Could I modify the code to let YARPP use evaq-150x150.jpg as thumbnail?

  11. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    With YARPP 4.0.1 you can now specify a custom thumbnail size. This is in the readme. You'll want to add code like add_image_size( 'yarpp-thumbnail', 150, 150, true ); to your theme's functions.php file.

    Again, though, YARPP only uses WordPress's builting featured image system. If you're generating images without going through the WordPress image_size functions it's possible that the YARPP thumbnail display won't find it.

  12. Enterpr1se
    Member
    Posted 1 year ago #

    But the meaning I got from readme is YARPP 4.01 is use evaq.jpg to resize 150x150, that is still orginal evaq.jpg and just display as 150x150.
    If the image is 2048x1080, a 10MB image, YARPP will load that 10MB image and display as 150x150.
    Am I right?

    But what I want is directly load a image name call "evaq-150x150.jpg", that's a real 150x150 pixel image that's already cropped and resized.
    Could I modify the code to do that?
    Thx

  13. Enterpr1se
    Member
    Posted 1 year ago #

    Thx, I did it, it works fine now

  14. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    The new 4.0.1 FAQ has information on how to fix this. The easiest thing to do is to run the Regenerate Thumbnails plugin after you change the size:

    http://wordpress.org/extend/plugins/regenerate-thumbnails/

    This way the 10mb file won't be served. Glad it sounds like you worked it out. :)

  15. umair0811
    Member
    Posted 1 year ago #

    my problem is it only shows default thumbnail my site is

  16. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @umair0811 please do not reopen old threads with different issues. Please create a new topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.