Woocommerce Products images are broken when there are multiple images.
-
Looks like the plugin don’t support multiples images for posts and products.
I have created a shortcode and selected the Product in Query Parameters>Post Type.
1. The image gets broken if there are multiple images for that post.
2. The srcset contains image url in a wrong way, here is complete img tag code:<img width="150" height="150" src="https://m.media-amazon.com/images/I/51igWPeivoL._SS150_.jpg" class="attachment-alm-thumbnail size-alm-thumbnail wp-post-image" alt="" srcset="https://i2.wp.com/m.media-amazon.com/images/I/51igWPeivoL.jpg?w=150&ssl=1 150w, https://i2.wp.com/hairduty.com/wp-content/uploads/https://m.media-amazon.com/images/I/51igWPeivoL.jpg?zoom=2&resize=150%2C150&ssl=1 300w" sizes="(max-width: 150px) 100vw, 150px">
You can see the url is prefixed:
https://i2.wp.com/hairduty.com/wp-content/uploads/https://m.media-amazon.com/images/I/51igWPeivoL.jpg?zoom=2&resize=150%2C150&ssl=1Which is wrong and that’s why its not showing the image.
Please help me to fix it.
Thanks for reading ??
The page I need help with: [log in to see the link]
- The topic ‘Woocommerce Products images are broken when there are multiple images.’ is closed to new replies.