Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue #1157: Display schema.org image data for 'attachment' post type #1176
On 'attachment' pages in Native AMP, there's no schema.org data for the image.
This adds a conditional to check for the post type of 'attachment.'
It's possible that the attachment is a video, like a
As reported in this support topic: https://wordpress.org/support/topic/structured-data-error-for-attachment-pages-media/