AMP Post Script


In short, this plugin make custom modifications to the AMP plugin.

  • The AMP plugin settings can be customized here: /wp-admin/customize.php?customize_amp=1
  • Add a custom menu to AMP… update it through (/wp-admin/nav-menus.php)
  • Add related articles based on similar categories. Taxonomy can be changed using…. define(‘PS_AMP_RELATED_TAXONOMY’, ‘category’);
  • Add Google Analytics to AMP view using…. define(‘PS_AMP_GA_ANALYTICS’, ‘UA-xxxxxxxx-x’);
  • Override post type support using…. define(‘PS_AMP_ADDITIONAL_POST_TYPES’, ‘events,news,locations,wpseo_locations,tribe_events’);
  • Disable Related Posts Using…. define(‘PS_AMP_DISABLE_RELATED_POSTS’, true);
  • Use Site Icon for AMP metadata image if no image present
  • Added required CSS for these additions


  1. Upload post-script-amp folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Közreműködők és fejlesztők

“AMP Post Script” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

“AMP Post Script” fordítása a saját nyelvünkre.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változási napló


  • Initial release


  • Bug Fixes
  • Fix to Genesis Framework incompatibilities
  • Added amp support for pages (and a few customizations)
  • Added amp support for multiple other post types, including other plugins such as ( wpseo_locations | tribe_events )


  • Bug Fixes
  • Fix general incompatibilities
  • Added amp support for editable post-types by defining them in your theme
  • Ability to disabled the related post feature
  • Removed all wp_footer actions, which can cause validation errors


  • Bug Fixes
  • Update CSS


  • Removed “pages” as a default post type, can be added back manually, see plugin “description”


  • Cleaned up class and methods construction


  • Restructured the plugin code to give it a better namespace to avoid any potential conflicts
  • Better documented plugin code


  • Plugin compatibility fixes


  • Plugin/css compatibility fixes


  • Improvements to “related posts” functionality


  • Bug Fixes


  • Add Alt Tags to Related Posts