Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    WPP creates thumbnails using WordPress’ core functions, so the results should be the same. Please share your site’s URL so I can take a peek.

    Thread Starter pr0fess0r

    (@pr0fess0r)

    Hey Hector

    The site is still in development, but here’s the code for the sidebar:

    <?php wpp_get_mostpopular( 'post_type="post,recipe"&thumbnail_width=69&thumbnail_height=33&header_start=""&header_end=""&wpp_start="<section class=\'aside-listing\'><h2>TRENDING</h2>"&wpp_end="</section>"&limit=5&range=all&freshness=1&post_html="<article class=\'aside-listing-item\'><div class=\'aside-listing-item-thumb\'>{thumb}</div><div class=\'aside-listing-item-title\'><a href=\'{url}\'><h3 style=\'font-size: 12px;\'>{text_title}</h3></a></div></article>"' ); ?>

    And here is the code in functions.php

    add_image_size( 'full-page-width', 800, 400, array('center','center') );
      add_image_size( 'small-panel', 386, 193, array('center','center') );
      add_image_size( 'prev-next-thumb', 144, 69, array('center','center') );
      add_image_size( 'sidebar-thumb', 69, 33, array('center','center') );
      set_post_thumbnail_size(800);

    In the WPP settings, “Pick image from:” is set to “Featured image” and “Responsive support” is enabled.

    If I wanted to use ‘sidebar_thumb’ as my WPP image, how would I do that?

    Cheers

    Plugin Author Hector Cabrera

    (@hcabrera)

    Hi there!

    Sorry for the late reply. Spent the last three days in bed really sick and just now I was finally able to get online.

    If I wanted to use ‘sidebar_thumb’ as my WPP image, how would I do that?

    WPP gets the the thumbnail image via the get_the_post_thumbnail() function, passing the configured width & height as parameters so WordPress returns the closest image in size (assuming there isn’t a perfect match). In theory, WPP should be using the sidebar_thumb size as it matches the specified size.

    Since your site isn’t online I can’t really check if that’s the case or if something else is going on (like some CSS style stretching the images to a different size, for example).

    Thread Starter pr0fess0r

    (@pr0fess0r)

    Thanks Hector, I hope you’re feeling better and I appreciate the time you put into supporting your plugin.
    When the site is closer to completion I’ll use a plugin to regenerate all the thumbnails from the featured images (it’s possible the dimensions changed since they were originally created) and if there are still issues I’ll be able to point you to the site.

    Get well soon!

    Plugin Author Hector Cabrera

    (@hcabrera)

    Thanks, I’m feeling a bit better already ??

    Please keep me posted about it. I’ll lend a hand if you still haven’t figured out what’s wrong.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Thumbnails blurry, can use "add_image_size" version?’ is closed to new replies.