-
Dear Sir,
I use Schema Markup Rich Snippets By Rank Math WordPress Plugin.
Rich Snippets is working single post and output <script type=”application/ld+json”> correctly. I want to show same ld+json output in single post AMP page. But its not showing in amp page source. I use better amp plugin.
How to add manually application/ld+json for AMP page? Please advice me.
I added this code my functions.php file but not working for amp page.
if (function_exists( 'is_amp_endpoint' ) && is_amp_endpoint()) { add_filter( 'rank_math/json_ld', function( $data, $jsonld ) { return []; }, 10, 2); }
Please Help me.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The ticket ‘Rich Snippets not working AMP’ is closed to new replies.