WordPress.org

Support

Support » Plugins and Hacks » Yet Another Related Posts Plugin (YARPP) » [Resolved] Always display default thumbnails picture, not display post thumbnails

[Resolved] Always display default thumbnails picture, not display post thumbnails

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

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

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    @enterpr1se, were you able to resolve this issue?

    Enterpr1se

    @enterpr1se

    Hi,

    Yes, I found that if the post have featured images, it will have a thumbnails.
    But my theme will auto create a 150×150 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?

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    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/

    Enterpr1se

    @enterpr1se

    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 150×150 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

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    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

    omnimobile

    @omnimobile

    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

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    @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?

    Enterpr1se

    @enterpr1se

    My theme will auto generate different size images.

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

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

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    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.

    Enterpr1se

    @enterpr1se

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

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

    Enterpr1se

    @enterpr1se

    Thx, I did it, it works fine now

    Plugin Author mitcho (Michael Yoshitaka Erlewine)

    @mitchoyoshitaka

    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. 🙂

    my problem is it only shows default thumbnail my site is

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

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘[Resolved] Always display default thumbnails picture, not display post thumbnails’ is closed to new replies.
Skip to toolbar