We're merging with GenerateBlocks! Learn more here.

[Support request] Show Posts Images Not Working

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Show Posts Images Not Working

Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #8271
    Paul
    Participant

    Show posts has been working great for me for years. This morning when I checked the website, and some of the posts I have using show posts are not displaying the featured image. They had been working fine previously.

    See for example:
    https://www.sandandsteelfitness.com/our-team/ (missing images)

    but show posts seems to be working on
    https://www.sandandsteelfitness.com/careers/ (see bottom of the page.)

    Show posts is not working on our homepage see the sidebar half way down.
    https://www.sandandsteelfitness.com/

    But is working on our mobility page
    https://www.sandandsteelfitness.com/product/mobility-and-muscle-therapy/#tab-mobility-and-movement-articles

    Not sure what’s wrong.

    #8275
    Tom
    Keymaster

    Hi there,

    It looks like you’re using a lazy loading plugin which isn’t working. What happens if you disable it?

    #8276
    Paul
    Participant

    I tried disabling the A3 Lazy Loader, but it didn’t change the result. I also have been using that same lazy loader for several months.
    Plugin is off, and you can see that the images are still not loading on certain pages.

    -Paul

    #8281
    Paul
    Participant

    I re-enabled the Lazy Loader since it didn’t fix the issue. Please sign up for an account if you can’t trouble shoot it from the outside.
    https://www.sandandsteelfitness.com/wp-login.php?action=register

    I’ll update your user rights once you create the account.

    -Paul

    #8294
    Tom
    Keymaster

    Hey Paul,

    Just went to the problem page and I’m seeing the images now. Is it working for you as well? Try clearing your browser cache.

    #8295
    Paul
    Participant

    WPSHowPosts isn’t working Kinsta. I changed the settings on showsposts to remove the image size specification. If I do that, the images show. As soon as a specify a size (e.g. 400px) the images do not appear.

    #8296
    Tom
    Keymaster

    Interesting. The plugin is using this library for image resizing: https://github.com/syamilmj/Aqua-Resizer

    In the near future, I’ll be removing that and trying a more native WP approach.

    #8297
    Paul
    Participant

    I sent you through the support option of the trouble shooting I did with Kinsta. They have a detailed report as to why it doesn’t work with their CDN.

    #8306
    Tom
    Keymaster

    It’s definitely not the best way to resize images.

    We’ll be implementing a way to use built-in WP sizes, and then object-fit for cropping. I can help you implement a solution like this for now if you’d like?

    #8309
    Paul
    Participant

    It would be appreciated. We use Showposts a lot, and currently our implementation is limited because of the lack of image resize functionality.

    #8324
    Tom
    Keymaster

    Here’s what I would do right now:

    1. Create a new image size in WP:

    add_action( 'after_setup_theme', function() {
        add_image_size( 'your-size-name', 500, 500, true );
    } );

    true tells it to hard crop the image.

    2. Regenerate your thumbnails so this size exists using a plugin like this: https://wordpress.org/plugins/regenerate-thumbnails/

    3. Tell WPSP to use this new size:

    add_filter( 'wpsp_default_image_size', function() {
        return 'your-size-name';
    } );

    Adding PHP: https://docs.wpshowposts.com/article/adding-php/

    #8339
    Paul
    Participant

    Wouldn’t that lock the size to the image specified in “your-size-name?”

    #8349
    Tom
    Keymaster

    Isn’t that what we’re trying to do? If you don’t want the images to have a set size, you can just ignore the image sizing options in the list settings.

    #8352
    Paul
    Participant

    That’s exactly the feature that isn’t working with kinsta’s cdn.

    #8366
    Tom
    Keymaster

    That’s the automatic resizer that WPSP uses.

    The method I outlined above doesn’t use that automatic resizer – it uses WordPress functions.

Viewing 15 posts - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.