Skip to content

Modern Image Formats - post thumbnail dont follow picture element #2178

@1ucay

Description

@1ucay

No others plugins installed, only Modern Image Formats with settings

AVIF - Generate images in this format
✓ Also generate fallback images in the original upload format
✓ Generate all fallback image sizes including custom sizes
✓ Use < picture > Element (experimental)

in php call

<?php the_post_thumbnail( 'medium_large' ); ?>

<img width="768" height="768" src="DOMAIN/uploads/2025/09/Copilot_20250725_003154-768x768-jpg.avif" class="attachment-medium_large size-medium_large wp-post-image" alt="Deserunt reprehenderit minim" decoding="async" fetchpriority="high" srcset="DOMAIN/uploads/2025/09/Copilot_20250725_003154-768x768-jpg.avif 768w, DOMAIN/uploads/2025/09/Copilot_20250725_003154-512x512-jpg.avif 512w, DOMAIN/uploads/2025/09/Copilot_20250725_003154-163x163-jpg.avif 163w, DOMAIN/uploads/2025/09/Copilot_20250725_003154-350x350-jpg.avif 350w, DOMAIN/uploads/2025/09/Copilot_20250725_003154-292x292-jpg.avif 292w, DOMAIN/uploads/2025/09/Copilot_20250725_003154-jpg.avif 1024w" sizes="(max-width: 768px) 100vw, 768px" />

Shouldn't it also be in the picture element with a source tag?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Type] BugAn existing feature is broken

    Type

    No type

    Projects

    Status

    Done 😃

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions