How the Plugin Works

The Official AMP Plugin for WordPress enables AMP content creation in a way that is seamlessly integrated with standard WordPress content creation workflows across both classic or Gutenberg-based editing. This means that the capabilities of the plugin are exercised as part of the normal way content is created and processed in WordPress.

AMP’s strength isn’t just that it allows to build pages that are fast, but that it makes our pages fast in a way that can be validated. Therefore, an important part in the process of AMP content generation is to ensure that the AMP content is actually valid AMP. The AMP plugin integrates AMP validity verification as part of the AMP content creation workflow in WordPress. It provides users (developers, implementers, and site owners), with detailed validation information, including the source of errors and the site components responsible for the offending markup; and it also provides the ability to take actions regarding such errors. 

Much of the plugin functionality enabling AMP content creation on your site happen automatically through the Post Processor module, which handles automatically the conversion of some content that can be converted to AMP automatically (e.g. <img> tag to <amp-img> tag), making content rendering as automatic as possible. And in cases where the plugin cannot do an automatic conversion of specific content (e.g. replacing the functionality of a 3P JS file), the plugin will assist you on determining and addressing the replacement of such functionality. 

In this Section, you can learn more about how the plugin handles automatic conversion in some instances, and what configurations are available around the WordPress templates available on your site.