Better AMP — WordPress Complete AMP


This plugin is most complete AMP ( Google Accelerated Mobile Pages) support for WordPress with supporting everything and created in speed mater and will load faster than all other AMP plugins.

Online Demo | Support

All pages, posts, categories, tags, author page, search… are supported in BetterAMP and there is a lot of more options that you can use them in customizer with live preview.

Also BetterAMP supports RTL languages completely.


  • Homepage + Slider + Off-Canvas Navigation + Contact Info + Social Links
  • Post (Supports all post types) + Social Share + Share Count + Comments
  • Category Archive + Tag Archive + 2 type of listings
  • Search Result + Author Archive
  • Page (Contact page) + 404 page


This section describes how to install the plugin and get it working.


  1. Upload the plugin files to the /wp-content/plugins/better-amp directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Better AMP screen to configure the plugin
  4. (Make your instructions match the desired user flow for activating and installing your plugin. Include any steps that might be needed for explanatory purposes)

Часто задаваемые вопросы

What is the URL for AMP pages?

You can see AMP version of your site with adding /amp/ to your site url:
All inner pages url will be started with same /amp/ in start of url:
Also BetterAMP supports the /amp/ in the end of url to cover «Automatic AMP» plugin urls.


i love this plugin but one problem an facing is this plugin is not showing google ads which is already showing in the web version, it show blank spaces where ads are suppose to appear
Le meilleur, le plus simple... Le plus efficace !
Exactly do not use "" I lost about 5000 index of woocommerce because of this plugin USE thank you very very much
PHP Warning: reset() expects parameter 1 to be array, boolean given in /home/xxxxxxxx/public_html/xxxxxxxx/wp-content/plugins/better-amp/includes/classes/Fastimage.php on line 208 PHP Warning: unpack(): Type C: not enough input, need 1, have 0 in /home/xxxxxxxx/public_html/xxxxxxxx/wp-content/plugins/better-amp/includes/classes/Fastimage.php on line 206 PHP Warning: reset() expects parameter 1 to be array, boolean given in /home/xxxxxxxx/public_html/xxxxxxxx/wp-content/plugins/better-amp/includes/classes/Fastimage.php on line 208
The official wordpress AMP plugin stay long time without update, then i use AMP for WP many year. But it slow then i buy AMP caching plugin and it's little bit better, but Better AMP it's more speed and free! And with AMP for WP, i must buy special plugin for custom post type, but Better AMP do that better and for free! When i stop using AMP for WP, i test the other plugin, like new WordPress AMP official plugin, made with google, who make full AMP website, but after that, i see all my website down in google search, Google tell us to change with this new plugin, but after they stop indexing your website! Then i change with Better AMP, beautiful template for free, very speed, and i win many position on google with it. I hope this plugin will be updated because, after many test with other plugin, i can say have no better plugin for AMP, it's the best one!
Посмотреть все 20 отзывов

Участники и разработчики

«Better AMP — WordPress Complete AMP» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:


Перевести «Better AMP — WordPress Complete AMP» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений


4 May 2019
— Added: Show/Hide Tagline Feature
— Added: Support for instagram embedded code
— Added: Snip Plugin Compatibility

  • Fixed: Wrong link url with special characters
  • Fixed: Box ratio of Youtube and iFrame video


15 Apr 2019
— Added: AMP-Embed to valid tags.
— Added: Buttons style added.

  • Improved: AMP URL Converter with Unit Tests
  • Improved: AMP WPForo plugin compatibility

  • Fixed: Undefined index in JetPack.

  • Fixed: “View Desktop Version” Wrong link on WordPress Directory Installation
  • Fixed: DOMElement::setAttribute(): string is not in UTF-8
  • Fixed: 404 error on some pages with end-point
  • Fixed: Wrong AMP pages redirect on WPML.
  • Fixed: Wrong false result on is_better_amp() early calls, when WPML with ‘Different languages in directories’ setting enabled
  • Fixed: Wrong wp directory installation detection
  • Fixed: Do not convert link when started with wp-content
  • Fixed: Some end-point AMP URL issues
  • Fixed: Some start-point AMP URL issues
  • Fixed: AMP URL on pagination archive pages.
  • Fixed: AMP version for paginated comments.


5 Jan 2019
— Fixed: Always remove AMP query var when transforming URL to non-AMP.
— Fixed: Wrap text in a pre tags (BetterAMP)


26 Dec 2018
— Fixed: AMP Homepage redirects to non-AMP version.


25 Dec 2018
— Fixed: Too many redirects on search page.
— Fixed: The home page incorrect url.
— Fixed: Infinite redirects on pages
— Fixed: Infinite redirects on pages that AMP is disabled.
— Fixed: Infinite redirects on pages with custom query string.


15 Dec 2018
— Fixed: 404 when /%year%/%monthnum%/%day%/%postname%/
— Foxed: Notice on trying to get property of non-object
— Fixed: Paginated search result view in end-point url format.


  • Added: Complete Gutenberg blocks style support.

  • Improved: The AMP url codes rewrite from scratch to works bug free.

  • Improved: Tabs style improved.

  • Fixed: canonical url determination

  • Fixed: Video and Audio tag transform to amp-vdieo and amp-audio.


  • Added: Category description support in archive page (all taxonomies)

  • Improved: Do not view amp when it’s not enabled.

  • Improved: Added support for custom taxonomies in end-point.

  • Fixed: Youtube embedded video with short link

  • Fixed: WooCommerce tag archive page header style.


  • Fixed: AMP archive wrong redirect.
  • Fixed: Wrong “View Desktop Version” button url.
  • Fixed: Determinate page as a category!
  • Fixed: 404 Error on the paginated post
  • Improved: Redirection for single paginated post to prevent 404 error.


  • Fixed: Footer copyright text is disable by default and needs activate by user. WP plugins violation fix.
  • Fixed: Theme color print issue.
  • Fixed: Single 404 error on %category%/%postname% permalink.
  • Fixed: Redirection issue on customizer preview
  • Fixed: Wrong AMP page determination in some CGI web servers
  • Improve: Replace embedded video with proper amp tag.


  • Fixed: 404 pages in end-point URL’s.
  • Improved: BetterAMP and Better Ads Manager compatibility improved.
  • Improved: URLs code improved.


  • Improved: The endpoint URL feature improved.
  • Fixed: Issue on search page and some other pages in the endpoint AMP flag fixed.
  • Fixed: Conflict with the Amazon Affiliate Links plugin.


  • Added: Option to move /amp/ to start or end of URL’s in AMP version.
  • Added: Squirrly SEO Plugin Compatibility
  • Added: ‘none’ choice to disabled post types & taxonomies

  • Fixed: Issue on url transformer.

  • Fixed: Too many redirection issue.

  • Devs: «better-amp/style-files/{$file}» added for developers.


  • Fixed: Small code issue fixed.


  • Added: support default/plain WordPress Permalink Settings.
  • Improve: The Custom Permalink Structure feature improved.
  • Fixed: Mobile users force redirect issue.


  • Added: Advanced AMP pages filter added.
    Enables you to enable/disable in custom post types/ taxonomies and other pages in the most custom way.

  • Added: New Relic compatibility added.

  • Added: Polylang plugin compatibility added.

  • Improved: Better AMP compatibility with all other plugins improved.

  • Fixed: AMP pages redirects when the site url and home url is not same (wp in directory).

  • Fixed: AMP for post types archive issue fixed.
  • Fixed: ‘Disable amp version’ option works on home page.


  • Improved: Auto content validator improved.
  • Improved: Video will be shown on single if the post format was video!
  • Improved: Codes improved.


  • Improved: AMP Yoast SEO plugin compatibility improved.

  • Fixed: AMP urls ending / fixed.

  • Fixed: Add Comment button not works when auto mobile redirect is active.
  • Fixed: Code warning.


  • Fixed: RTL Ads issue. Thanks @Igor @Issa
  • Fixed: issues with AMP urls by excluding language subdirectories. Thanks @david.g

  • Improved: «WPO Tweaks» plugin compatibility.

  • Add: Pretty Links Plugin Compatibility


  • Fixed: Validation issue about WordPress update.


  • Improved: AMP codes improved.
  • Fixed: Infinite redirect to AMP version in subdirectory wp installations.


  • Improved: Style improved.


  • Added: Full WPML support added to AMP.
  • Added: Auto redirect to AMP for mobile visitors added (compatible with all cache plugins).
  • Added: «Google Auto Ad» compatibility added.
  • Added: New fields for adding custom code in head, body start and end of page.
  • Added: Favicon support added.
  • Added: Option to enable/disable header sticky feature.

  • Improved: Admin panel usability improved.

  • Improved: Codes improved.
  • Improved: Will not redirect visitor to amp for «None AMP Link» at footer! Thanks @Karl

  • Fixed: Custom CSS was not after all css codes.

  • Devs: @better-amp/template/body/start action added.

  • Devs: Gulp.js file updated.


  • Fixed: Third Party plugins a URL compatibility. Thanks @Karl
  • Fixed: Content sanitizer improved to support special type of video tag.


  • Improved: WooCommerce outdated functions updated.


  • Added: Related posts added (6 algorithm to show related posts)
  • Added: Comments will be shown in AMP.
  • Added: Option to change share links to short/normal link.
  • Added: CSS validator added for custom css and element css!
  • Added: «WP Speed Grades» plugin compatibility added.
  • Added: «WP-Optimize» plugin compatibility.
  • Added: «Speed Booster Pack» plugin compatibility.
  • Added: NextGEN Gallery Support
  • Added: Comments pagination support added.

  • Improved: Related posts moved after share buttons.

  • Fixed: Incorrect AMP Author Avatar url (plugin conflict).

  • Fixed: iFrames height not comes from iFrame tag!
  • Fixed: Posts «hentry» class removed for better SEO results.
  • Fixed: «Auto URL Convertor» field description fixed.
  • Fixed: Exclude auto convert link only works for one pattern!
  • Fixed: single featured images goes out of box in mobile.


  • Added: AMP «Above The Fold» plugin compatibility added.
  • Added: New option to exclude URL (and URL pattern) from AMP URL converter. You can use it to exclude subdirectories.

  • Improved: AMP pages SEO improved.

  • Improved: AMP validator improved. It’s even smarter!

  • Fixed: AMP ads rtl style fixed.

  • Fixed: AMP minor warning fixed.


  • Fixed: «Custom Permalinks» support added to BetterAMP.
  • Fixed: «link» tags will be removed from BetterAMP pages body section.
  • Fixed: Structured data validation issue with custom image logo (BetterAMP).
  • Fixed: «Convert Plug» plugin validation issue fixed.


  • Fixed: AMP post inline ads not working properly.
  • Fixed: AMP PHP Warning. Thanks @isrgrajan


  • Added: «WordPress Fastest Cache» plugin compatibility added.
  • Improved: is_better_amp() works before template_redirect action.


  • Added: Static homepage support added.
    You can chose a page to be shown for AMP homepage.

  • Added: Complete «Structured Data» support added.

  • Added: Complete YoastSEO compatibility added. No need to «Glue for Yoast SEO & AMP».
  • Added: Ad Location: AMP middle of post content ad location.
  • Added: «Ultimate Tweaker» plugin compatibility added.

  • Improved: [video] shortcode compatibility improved.

  • Improved: Facebook and Vimeo embeds compatibility improved.
  • Improved: Improvement: Android title bar color will be same as BetterAMP theme color. Thanks @Antonio
  • Improved: BetterAds min supported version changed to 1.9

  • Fixed: BetterAMP will keeps elements inline styles.
    Creates custom class and adds style code into page style section automatically.

  • Fixed: Incorrect homepage title when YoastSEO is active.

  • Fixed: Style sanitizer improved to make 100% Google validated codes.
  • Fixed: «WP Speed of Light» plugin compatibility.
  • Fixed: PHP old versions fatal error.
  • Fixed: AMP-IFRAME sanitizer improved to force protocol attribute.
  • Fixed: Social share links protocol changed to HTTPS
  • Fixed: Sanitizer value_url fixed to not print empty src!
  • Fixed: Facebook Comments Plugin compatibility. Extra codes (js and markups) will be removed.
  • Fixed: WooCommerce templates are overriding out of AMP! Thanks @ptsadmin
  • Fixed: Post formats archive page shows 404 error. Thanks @kstockl


  • Fixed: Thumbnail is not showing bug.


  • Added: Video/Audio Featured support added to AMP.
  • Added: AMP Youtube, Twitter, Facebook, Vimeo, Soundcloud, Vine and Instagram support added.
  • Fixed: Thumbnail of static pages fixed to be responsive.


  • Added: ‘Better WordPress Minify’ plugin Compatibility.
  • Fixed: Search page style issue fixed.


  • Added: AMP Smart style printing. 200% smaller CSS file
  • Added: Option to show/hide share in pages.

  • Improved: AMP content validator layer improved.

  • Improved: Design.

  • Fixed: Blockquote style.

  • Fixed: Home slider RTL style fixed.
  • Fixed: Whatsapp link not works.
  • Fixed: AMP changed to amp for third-party plugins compatibility.
  • Fixed: Only 1 gallery is showing.
  • Fixed: RTL style fixed.


  • Improved: WP-Rocket compatibility improved.
  • Fixed: Auto validator fixed for iFrame tag attrs.
  • Fixed: Share link changed to none-AMP version link.
  • Fixed: Script tags making page invalid fixed.
  • Fixed: Post image is not showing fixed.


  • Improved: RTL style checked and fixed for all pages.
  • Fixed: Large listing image style.
  • Fixed: Subtitle wrong tag close.
  • Fixed: Google Analytics not works.
  • Fixed: Missing close tag for


  • Fixed: «WP Rocket» plugin lazy load compatibility.
  • Fixed: «Lazy Load» plugin compatibility.
  • Fixed: «Lazy Load XT» plugin compatibility.
  • Fixed: Customizer page not showing correctly.
  • Fixed: Scroll to end customizer page issue.


  • 10 Ad Location added.
  • Ad Location 1: After header (in all pages)
  • Ad Location 2: Before post title
  • Ad Location 3: After post title
  • Ad Location 4: Above post content
  • Ad Location 5: Post content ads (After X Paragraph)
  • Ad Location 6: Below post content
  • Ad Location 7: After comments in posts
  • Ad Location 8: Footer (in all pages)
  • Ad Location 9: After title in archive pages
  • Ad Location 10: After X posts in archive pages

  • Added: New level of AMP page validator added.

  • This validator includes all Google AMP rules and will make your site
  • content validated with 99% warranty!

  • Added: WooCommerce support added (Shop, Product, Shop Categories, Shop tags and Cart page)

  • Added: Attachment page support added.

  • Added: Custom css field added.

  • Improvement: Style file printing changed.

  • Fixed: A lof of code fix and improvement.

  • Fixed: undefined function fixed.
  • Fixed: Url encode added to make sure shared url will work correctly in social networks in RTL languages.
  • Fixed: Share link changed to pretty permalink.
  • Fixed: rel=amphtml generating for non-amp pages fixed.
  • Fixed: Showing BetterStudio themes mega menu disabled in AMP.
  • Fixed: Social share sorter fixed in customizer.


  • Fix: Fatal error in creating new post.


  • Fix: The undefined index warning in admin.


  • Fix: Search page issue
  • Improvement: Style improved.


  • Fix: Menu item is not showing.


  • Public release