We're merging with GenerateBlocks! Learn more here.

[Resolved] WP Offload Media (S3) images not showing

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support WP Offload Media (S3) images not showing

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #29149
    JC
    Participant

    Hello,

    I’ve setup WP Offload Media with Amazon S3 as image bucket but WP Show posts does not display the images.

    Please let me know how I can fix it.

    Thank you.

    #29154
    JC
    Participant

    I think I have solved it after a bit of digging so I am sharing so that others will have the fix in one go.

    If you enable WP Offload Media with S3 bucket or even Google Cloud Storage GCS bucket then.

    1. Check the List settings under IMAGES and make sure width and height is left blank.
    2. Add this to your functions.php (not sure how to add it via Elements (if using GP Premium like I am)

    /** S3 Images with WP Show Posts **/
    add_filter( 'wpsp_default_image_size', function() {
        return 'medium';
    } );

    You can adjust the size to “thumbnail” or “large” or whatever you prefer under the return value.

    If there are better ways of doing this please let me know but I do hope this helps someone else setting up WP Offload Media with WP Show Posts.

    #29170
    elvin
    Moderator

    Hi there,

    We’re not exactly sure what the plugin does that prevents the image from being displayed.

    But looking at what worked for you, it’s possible that the plugin is doing something to the registered image size ‘full’ because that’s the default value for wpsp_default_image_size as shown here:
    https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/inc/functions.php#L193

    Thank you for sharing this with us. 🙂

    #29178
    JC
    Participant

    Thanks Elvin. Might be something to look in to on WP Posts to fix. We need to be able to set the width and height for Pagespeed score to not be affected.

    #29184
    elvin
    Moderator

    Thanks Elvin. Might be something to look in to on WP Posts to fix. We need to be able to set the width and height for Pagespeed score to not be affected.

    Ah! about that. Tom’s currently working on an alpha version that addresses this issue.

    Check this:
    https://wpshowposts.com/wp-show-posts-1-2-0/

    Tom aims to release the beta for live site use as soon as possible but we can’t give out any specific date for now, unfortunately.

    #29186
    JC
    Participant

    awesome thank you!

    #29190
    elvin
    Moderator

    No problem. 🙂

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