Add support for Jetpack open graph tags in AMP stories #13492
Labels
AMP
[Feature] Sharing
Post sharing, sharing buttons
[Type] Enhancement
Changes to an existing feature — removing, adding, or changing parts of it
Milestone
AMP Stories are a custom post type in the AMP Plugin.
However, the template does not use call
wp_head
, so the OG tags generated by jetpack are not inserted. AMP stories has a custom actionamp_story_head
which performs a similar action, introduced in ampproject/amp-wp#3039 .Describe the solution you'd like
A solution for this should be pretty simple. In the case
Jetpack_AMP_Support
there is already a hook intoamp_post_template_head
to add og graph tags in this line.Add support for amp stories could be as simple as adding the following code.
Additional context
Related:
Yoast/wordpress-seo#13446
ampproject/amp-wp#3039
ampproject/amp-wp#3179
Looping @westonruter and @swissspidy for visibility.
The text was updated successfully, but these errors were encountered: