I can see this on the non-AMP version of the page as well: https://ccountync.com/cedar-island-nc-wild-horses-lost-during-hurricane-dorian-2019/
<?php
$schema = get_post_meta(get_the_ID(), 'schema', true);
if(!empty($schema)) {
echo $schema;
}
?>
You should identify which theme/plugin is incorrectly adding that to the page. It appears to be a bug on your site.
That being said, the AMP plugin should be removing that as well as a validation error. But the underlying problem seems to be a bug in your theme/plugin.
OK, I have some digging to do. All posts and categories were AMP valid before the 1.3.0 update. I check all validations each time I make a post. There have been no theme updates in several months.
The only updates I have had is Yoast and AMP in the past month. Possible the Yoast update could be affecting this?
You’ll have to search through the codebase for your theme and plugins to find the code above and who is responsible for adding it.
Just installed the workaround, cleared cache and confirm everything is now AMP valid.
This has to be an issue with Yoast SEO 12.2 since I have had ZERO plugin/theme updates for the past month, then today AMP 1.3.0 and Yoast 12.2
I have linked a support item on the Yoast page to this post.
So … it isn’t safe to install AMP 1.3?
@the-dude-1 It is totally safe to install AMP 1.3. The issue discussed here is a very specific and rare issue on the respective website.
And if you do happen to have the issue, it is to work around by using the extension plugin.
@swissspidy … but i also have Yoast 12.2 Premium installed. ;(
@swissspidy Does the same AMP validation error occur? Then simply install this additional plugin: https://gist.github.com/westonruter/96ae3cb713051aae867b874196eef910
I’ll try. Big thx in advance 2 u @westonruter 🙂
-
This reply was modified 6 years, 8 months ago by
The-Dude.