Skip to content

Conflict Between Optimole v4.0+ and WP Show Posts Plugin #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kushh23 opened this issue Apr 27, 2025 · 3 comments
Open

Conflict Between Optimole v4.0+ and WP Show Posts Plugin #926

kushh23 opened this issue Apr 27, 2025 · 3 comments
Assignees
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer. regression Issue represents a change in behavior from a previous version that is not intended or desired..

Comments

@kushh23
Copy link

kushh23 commented Apr 27, 2025

Description

After updating to Optimole v4.0 or later, a conflict occurs with the WP Show Posts plugin.
When using WP Show Posts to display a listing, if the image width and height attributes are set, the listing images appear broken on the frontend. The src attribute does not contain any image URL.

This issue does not occur with Optimole v3.14.1, where the integration works correctly without any problems.

Issue URL - https://varioustrip.s4-tastewp.com/wp-show-posts-issue/

Additional Notes

  • The issue specifically occurs when custom width and height attributes are manually added.
  • Tested on a clean WordPress installation with only Optimole and WP Show Posts activated.
  • No errors were observed in the console; only broken images on the frontend.

Step-by-step reproduction instructions

  1. Install the latest versions of Optimole and WP Show Posts plugins.
  2. Create a few posts with featured images.
  3. Create a listing in WP Show Posts and configure custom image width and height attributes.
  4. Copy the listing shortcode and add it to a page or post.
  5. View the page — the images will appear broken.
  6. Roll back Optimole to v3.14.1 — the images will display correctly without issues.

Screenshots, screen recording, code snippet or Help Scout ticket

Reported by: https://secure.helpscout.net/conversation/2917512045/462870


URL: https://varioustrip.s4-tastewp.com
Username: kushnamdev
Password: ZCjNHurJQLk

Image Image

Environment info

No response

Is the issue you are reporting a regression

Yes, this is a regression.

@kushh23 kushh23 added the bug This label could be used to identify issues that are caused by a defect in the product. label Apr 27, 2025
@pirate-bot pirate-bot added customer report Indicates the request came from a customer. regression Issue represents a change in behavior from a previous version that is not intended or desired.. labels Apr 27, 2025
@selul selul self-assigned this Apr 28, 2025
@selul
Copy link
Contributor

selul commented Apr 28, 2025

@kushh23 I've tried to fix this here #927, can you have a look?

I've reported also the issue to the plugin owner here tomusborne/wp-show-posts#50

We fixed a bug in the most recent version which triggered this. The problem was previously present too but only in the context when the images were offloaded.

@selul selul mentioned this issue Apr 28, 2025
@kushh23
Copy link
Author

kushh23 commented Apr 28, 2025

@selul tested the changes, and it solves the issue. Thank you for fast response.

@kushh23
Copy link
Author

kushh23 commented May 2, 2025

@selul Following up on the previous findings — the user confirmed that the issue is still unresolved on their end.

After further investigation, we found that the problem occurs when using the adverts post type from the WP Adverts plugin. When this post type is used in conjunction with WP Show Posts, the image placeholders fail to load correctly.

Test Site Details:

Issue page: https://historicalmuscle.s4-tastewp.com/issue-page/
Optimole disabled version: https://historicalmuscle.s4-tastewp.com/issue-page/?optml_off=true
URL: https://historicalmuscle.s4-tastewp.com/
Username: kushnamdev
Password: _xTXIko7G4o

Steps to Reproduce:

  1. Install the latest versions of Optimole, WP Adverts, and WP Show Posts plugins.
  2. Create a new post under the Adverts post type and upload images.
  3. In WP Show Posts, create a new listing:
  • Set the post type to adverts.
  • Define custom image width and height attributes.
  1. Insert the listing shortcode into a page or post.
  2. View the page — the image placeholders will not load.

Screenshots:

Image

Let me know if you need any additional details to replicate this on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This label could be used to identify issues that are caused by a defect in the product. customer report Indicates the request came from a customer. regression Issue represents a change in behavior from a previous version that is not intended or desired..
Projects
None yet
Development

No branches or pull requests

3 participants