Skip to content

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

@kushh23

Description

@kushh23

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.

Metadata

Metadata

Assignees

Labels

bugThis label could be used to identify issues that are caused by a defect in the product.customer reportIndicates the request came from a customer.regressionIssue represents a change in behavior from a previous version that is not intended or desired..

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions