How to Fix Schema Markup Errors for AMP Plugin?

I’ve started to use AMP plugin along with my Schema WordPress plugin to experiment how things work out and try to get my sites to benefit from this experience. So, I will share with you a few tips on how to solve those errors you get when you test your AMP posts in Google’s Structured Data Testing Tool.

What AMP Plugin Does?

The AMP plugin enable Accelerated Mobile Pages (AMP) on your WordPress site, which is an an open source initiative that aims to provide mobile optimized content that can load instantly everywhere.


I think you will find the AMP plugin useful, it may take a few weeks till Google pick that up though, so give it some time!

You can download AMP plugin or install it within your WordPress dashboard.

Fixing Schema Errors

The errors I am talking about here is within the schema markup, this happen mostly because a missing markup. The reason why AMP plugin fail on this, is because it doesn’t get quite enough updates to follow up with changes that Google push often.

One error I’ve got was from a missing image object that is part of Publisher schema.

AMP Schema Error

The problem here is you will need to add an image to present the Publisher Organization logo. AMP plugin doesn’t have a way to do that, maybe AMP will need to have this in a setting item, but AMP doesn’t have a settings page, it’s a very simply activate and forget plugin.

The Solution

To solve this issue, I’ve integrated a function into the Schema plugin, which solve the errors in the Structured Data Testing tool.

Thankfully, the AMP developers has provided a way to override the schema markup output, I’ve found a filter within the plugin to allow me to do it, so I’ve hooked into that to use Schema markup output instead, which worked great and the Testing Tool errors has gone.

So, since I am using the Schema plugin, my sites got more detailed schema markups than what APM plugin will give.

4 thoughts on “How to Fix Schema Markup Errors for AMP Plugin?

  1. Hey mate,

    this is great, thanks for the support with this!!! I’m having some trouble disabling this schema markup from the AMP plugin, don’t suppose you could point me in the right direction?

    Many thanks!

    • Hi Joe,

      The Schema plugin will automatically indicates that you are using AMP plugin, then it will override the markup output.

      Please, post in the Schema plugin support forum (The comments here isn’t a good place for support)

      When you do, explain in more details, let me know if you are having multiple Schema outputs and please include a link to your site so I can assist you.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.