Home › Forums › Pro Support › Show Posts Images Not Working
- This topic has 20 replies, 2 voices, and was last updated 4 years, 2 months ago by
Tom.
-
AuthorPosts
-
March 19, 2019 at 8:09 am #8271
Paul
ParticipantShow 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-articlesNot sure what’s wrong.
March 19, 2019 at 6:36 pm #8275Tom
KeymasterHi there,
It looks like you’re using a lazy loading plugin which isn’t working. What happens if you disable it?
March 19, 2019 at 6:42 pm #8276Paul
ParticipantI 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
March 20, 2019 at 3:01 am #8281Paul
ParticipantI 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=registerI’ll update your user rights once you create the account.
-Paul
March 20, 2019 at 4:51 pm #8294Tom
KeymasterHey 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.
March 20, 2019 at 5:32 pm #8295Paul
ParticipantWPSHowPosts 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.
March 20, 2019 at 5:43 pm #8296Tom
KeymasterInteresting. 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.
March 20, 2019 at 5:44 pm #8297Paul
ParticipantI 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.
March 21, 2019 at 4:14 pm #8306Tom
KeymasterIt’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?March 21, 2019 at 6:00 pm #8309Paul
ParticipantIt would be appreciated. We use Showposts a lot, and currently our implementation is limited because of the lack of image resize functionality.
March 22, 2019 at 4:36 pm #8324Tom
KeymasterHere’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/
March 23, 2019 at 8:09 pm #8339Paul
ParticipantWouldn’t that lock the size to the image specified in “your-size-name?”
March 24, 2019 at 5:17 pm #8349Tom
KeymasterIsn’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.
March 24, 2019 at 6:03 pm #8352Paul
ParticipantThat’s exactly the feature that isn’t working with kinsta’s cdn.
March 25, 2019 at 4:57 pm #8366Tom
KeymasterThat’s the automatic resizer that WPSP uses.
The method I outlined above doesn’t use that automatic resizer – it uses WordPress functions.
-
AuthorPosts
- You must be logged in to reply to this topic.