• There seems to be a problem with image paths when adding images into WYSIWYG fields (at least in my repeater setup). But oddly it seems to only happen to small images, that do not get resized.

    If I upload a larger image, I get this in the source code:

    <img loading="lazy" class="alignleft size-medium wp-image-4169" src="../wp-content/uploads/2021/04/image-300x195.png" alt="" width="300" height="195" srcset="https://mywebsite.com/wp-content/uploads/2021/04/image-300x195.png 300w, https://mywebsite.com/wp-content/uploads/2021/04/image-768x500.png 768w, https://mywebsite.com/wp-content/uploads/2021/04/image.png 784w" sizes="(max-width: 300px) 100vw, 300px">

    The first image path is wrong, using ../wp-content, but depending on setup, one of the other images might show instead.

    If I upload a small image, that doesn’t get resized and doesn’t have srcset sizes, I get:

    <img loading="lazy" class="alignleft size-full wp-image-4171" src="../wp-content/uploads/2021/04/image.png" alt="" width="120" height="120">

    This shows a broken image link on the frontend.

  • The topic ‘Images in WYSIWYG repeater fields’ is closed to new replies.