• Hi @mr2p
    I have used the ACF image field and it works great. And you can choose the image size in your FSE template ??
    I just wonder why the HTML do not add the srcset parameter like the wp_get_attachment_image usually do.
    Have you notice that?
    Cheers,
    Grégoire

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Phi Phan

    (@mr2p)

    Hi @aglekis, I’ve never noticed that issue before. I’ll look into it soon.

    Thank you for your feedback.

    Phi.

    Thread Starter Gregoire Noyelle

    (@aglekis)

    @mr2p Great. You’re very welcome. Your plugin opens up so many opportunities. Thanks again.

    Plugin Author Phi Phan

    (@mr2p)

    @aglekis I learned that the wp_get_attachment_image function only generates srcset attributes when there are other image sizes that have the same aspect ratio (width:height) as the current image size. You can test it with another image that has multiple sizes with the same ratio.

    Phi.

    Thread Starter Gregoire Noyelle

    (@aglekis)

    Hello @mr2p
    Thanks for your message. I will make some tests.
    Cheers,
    Grégoire

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add srcset in the ACF Image’ is closed to new replies.