Skip to content
Public Ticket #8086

srcset not correctly populated when using the_post_thumbnail()

Conversation thread

PenciDesign replied

Staff Reply

Thank you for your sharingsmile.png

Have a great daywink.png

Cheers,

PenciDesign

MaximumJed replied

Customer Reply

Just in case anyone discovers this ticket and has the same problem. This issue was caused by a conflict with the jetpack image cache system. Switching that off resolved the issue.

PenciDesign replied

Staff Reply

Hi,

Strange, I just tested with the theme and I see it still working fine.

So, I think you have a plugin caused this issue. Please try deactivate all plugins ( except plugins come from the theme & map plugin you're using ) and try it again. After it work, let's enable each plugin to check what's plugin caused this issue.

Best Regards,

PenciDesign

MaximumJed replied

Customer Reply

Hi,

I used that plugin when I first installed the theme. The image sizes are still defined and the correct sized thumbnails are being generated - see attached images. I don't want to have to run regenerate every time I add a new post.

MaximumJed started the conversation

Conversation Start

This page uses the geo mashup plugin, which calls the_post_thumbnail to show the relevant post image on the map. However, the call returns a srcset which is not correct - the different image sizes are not included in the URL, so no matter what device you are using, you get the full 2000px image

Want to join this conversation or access attachments? Sign in first.