Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2007970
srcset not correctly populated when using the_post_thumbnail()
Closed

Comments

  •  1
    MaximumJed started the conversation

    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

  •  2,699
    PenciDesign replied

    Hi,

    Seem you need to use pluginĀ https://wordpress.org/plugins/regenerate-thumbnails/ to regenerate thumbnails to make srcset load correctsmile.png

    Best Regards,

    PenciDesign

  •  1
    MaximumJed replied

    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.

  •  2,699
    PenciDesign replied

    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

  •  1
    MaximumJed replied

    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.

  •  2,699
    PenciDesign replied

    Thank you for your sharingsmile.png

    Have a great daywink.png


    Cheers,

    PenciDesign