=== AMP for WP - Accelerated Mobile Pages ===
Contributors: mohammed_kaludi, ahmedkaludi, ampforwp
Tags: AMP, accelerated mobile pages, mobile, google amp, SEO
Donate link: https://www.paypal.me/Kaludi/25
Requires at least: 3.0
Tested up to: 7.0
Stable tag: 1.1.15
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

AMP for WP is the most recommended AMP plugin by the community. Automatically add Accelerated Mobile Pages (Google AMP Project) functionality on your WordPress site.

== Description ==
AMP for WP automatically adds Accelerated Mobile Pages (Google AMP Project) functionality to your WordPress site. AMP makes your website faster for Mobile visitors.

[What's New in this Version?](https://ampforwp.com/new/) | [Priority Support](https://ampforwp.com/priority-support/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin) | [View Demo](https://ampforwp.com/demo/) | [Screenshots](https://wordpress.org/plugins/accelerated-mobile-pages/screenshots/) | [Community](https://ampforwp.com/help-center/)

<strong>Extensions</strong><br>
Some useful extensions to extend AMP features, check [AMP Adsense Support](https://ampforwp.com/advanced-amp-ads/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin), [Contact Form 7 Support](https://ampforwp.com/contact-form-7/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin), [Email Opt-in Support](https://ampforwp.com/opt-in-forms/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin) and [Call To Action Support](https://ampforwp.com/call-to-action/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin). To view more, go to our [Extensions page](https://ampforwp.com/extensions/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin).

<strong>Support</strong><br>
We try our best to provide support on WordPress.org forums. However, We have a special [community support](https://ampforwp.com/help-center/) where you can ask us questions and get help about your AMP related questions. Delivering a good user experience means a lot to us and so we try our best to reply each and every question that gets asked.

<strong>Bug Reports</strong><br>
Bug reports for AMP for WP are [welcomed on GitHub](https://github.com/ahmedkaludi/Accelerated-Mobile-Pages). Please note GitHub is _not_ a support forum, and issues that aren't properly qualified as bugs will be closed.


= Features: =

* NEW - Gutenberg Support
* NEW - Divi and Elementor Support [More Info](https://ampforwp.com/amp-pagebuilder-compatibility/)
* NEW - GDPR Compliance
* NEW - Google PageSpeed Optimization with SSR (Server Side Rendering)
* NEW - CSS Optimization (Tree Shaking) - This will automatically remove all the unused CSS from your AMP pages
* NEW - Google Font API and Local Fonts Support For All Designs
* Out of the box compatibility for Yoast SEO, All in One Seo, Rank Math, Genesis, SEOPress, Bridge Qode SEO, The SEO Framework, SmartCrawl and Squrilly SEO Plugin.
* Introducing Page Builder 3.0 for AMP! [Learn More & Video](https://ampforwp.com/tutorials/article/amp-page-builder-installation/)
* New Default Theme for AMP called Swift
* 3 Pre-built AMP Layouts for Business websites and landing pages 
* OneSignal and TruePush Push Notifications integration 
* Advanced WooCommerce Support [More Info](https://ampforwp.com/woocommerce/)
* AMP Plugins Manager - Which allows you to disable a specific plugin functionality only in the AMP version
* Structured Data Options
* Page Break / NextPage (Pagination) Support
* Contact Form 7 Support [More Info](https://ampforwp.com/contact-form-7/)
* Graviry Form Support [More Info](https://ampforwp.com/gravity-forms/)
* Caldera Form Support [More Info](https://ampforwp.com/caldera-forms-for-amp/)
* Ninja Form Support [More Info](https://ampforwp.com/ninja-forms/)
* Facebook Comments Support
* Github Gist Support
* Email Opt-in Subscription form support in AMP added
* Call to Action boxes and notification bars 
* 9 Advertisement sizes - 2 More AD slots added recently
* Comments Forms in AMP.
* Native AMP Search functionality.
* Design 3 [Watch the Video Overview](https://www.youtube.com/watch?v=ub1pwskt3Rc)
* Disqus Comments Support
* Vuukle Comments Support
* Spot.IM Comments Support
* Google Tag Manager Support
* Page, Category & Tags Support Added
* Custom AMP Editor - Which allows you to override your Content that you had written in Post or page, so you can add the different content just for AMP.
* Mobile Redirection -  More than 50% of your traffic is from mobile and you aren’t doing anything to improve their user experience, which means you are falling behind on SEO and it can result in lower SERPS. Lightning fast mobile version means faster User experience means more engagement which directly results in the lower bounce rate.
* Custom Post Type Support 
* Custom Taxonomies Support
* Star Ratings
* Drag & Drop Page builder Added 
* 4 Designs for AMP 
* AMP WooCommerce Support 
* Switch on/off Support for Pages & Posts on AMP
* Translation Panel & RTL
* Internal AMP linking - You can browse AMP pages internally
* Related posts below the post
* Recent Comments list
* Automatically integrate AMP to your website.
* Google Adsense (AMP-AD) Support with 6 different Ad slots across the layout! The First Plugin to have this capability.
* Built in MGID Ads Support with 6 different ad slots.
* Google Analytics Support.
* User Friendly Theme Options Panel.
* Unlimited Color Scheme.
* Image Logo Upload.
* Supports Posts and Pages and other custom post types.
* Proper rel canonical tags which means that Google know the original page.
* Overlay Navigation Menu bar.
* Social Sharing in the Single.
* Sexy Design.
* Separate WordPress Menu for AMP version.
* Page builder & Shortcodes Compatibility.
* Carousel support for Gallery.
* Better Image stretching and resizing.
* Youtube Video Embed Support.
* Vine Embed Support.
* Twitter oembed Support.
* Instagram Embed Support.
* Facebook Video Embed Support.
* RTL Support
* Custom AMP FrontPage
* Notifications
* Alexa Metrics, Chartbeat, Hi-stats, Yandex Metrika, Piwik, Segment.com, StatCounter, Effective Measure and comScore Builtin Support
* Incontent & DoubleClick Support
* Great Support & Active Development.
* Widgets & WooCommerce 
* Breadcrumb Support added 
* Facebook Instant Articles Support Added
* AMP Installation Wizard that makes it easy to setup for new users.
* Category base remover support
* Tag base remover support
* Addthis Sharing Support
* Infinite Scroll Support
* Photo Gallery by 10Web Support  
* 12 New Social Media Integrations added (Reddit, Tumblr, Telegram, Digg, StumbleUpon, Wechat, Viber, Hatena Bookmarks, Pocket, Yummly, MeWe, Flipboard) 
* AMP Theme Framework Core Support Added. You can now create AMP templates of your own in just minutes. **[More](https://ampforwp.com/amp-theme-framework/)**
* NEW - Make AMP & Non-AMP Same with just one click! 
* NEW - Allows you to use AMP as primary website!


**[JOIN CHAT GROUP COMMUNITY](https://ampforwp.com/community/)**: Purpose of this group is to get proper suggestions and feedback from plugin users and the community so that we can make the plugin even better.

= Getting Started: =
**[1. User Documentation:](https://ampforwp.com/help/)** The AMP for WordPress plugin is easy to setup but we have some tutorials and guides prepared for you which will help you dive deep with the plugin.

**[2. Developer Docs:](https://ampforwp.com/tutorials/article-categories/developer-documentation/)** We have created special documentations for developers and semi technical users who are willing to modify the plugin according to their own needs.

**[3. Support:](https://ampforwp.com/help-center/)** We try our best to provide support on WordPress.org forums. However, We have a special community support where you can ask us questions and get help about your AMP related questions. Delivering a good user experience means a lot to us and so we try our best to reply each and every question that gets asked.

**[4. Premium Support:](https://ampforwp.com/priority-support/#utm_source=wp_org&utm_medium=description-tab-pro-box&utm_campaign=AMP%20Plugin)** We will personally take care that your website’s AMP version is perfectly validated. We will make sure that your AMP version gets approved and indexed by Google Webmaster Tools properly and we will even keep an eye on AMP updates from Google and implement them into your website.

== Credits ==
Some code used in this plugin was forked from 'AMP for WordPress' plugin https://wordpress.org/plugins/amp/ - License URI: http://www.gnu.org/licenses/gpl-2.0.html.
Mobile & Tablet detection library used https://github.com/serbanghita/Mobile-Detect - License URI: https://github.com/serbanghita/Mobile-Detect/blob/master/LICENSE.txt
PHP CSS Parser library used https://github.com/sabberworm/PHP-CSS-Parser - License URI: https://github.com/sabberworm/PHP-CSS-Parser#license (PHP-CSS-Parser is freely distributable under the terms of an MIT-style license.)
AMP Optimizer library used https://github.com/ampproject/amp-toolbox/tree/main/packages/optimizer - License URI: https://github.com/ampproject/amp-toolbox#license (AMP Toolbox is made by the AMP Project, and is licensed under the Apache License, Version 2.0.)
GA4 Code used from https://github.com/analytics-debugger/google-analytics-4-for-amp - License URI: https://github.com/analytics-debugger/google-analytics-4-for-amp/blob/main/LICENSE

== Installation ==
**[Visit Help area for the Documentation:](https://ampforwp.com/help/)**

[youtube https://www.youtube.com/watch?v=Em1nsE_KaKw]

**[Visit Help area for the Documentation:](https://ampforwp.com/help/)**


== Frequently Asked Questions ==

= Can I add analytics? =

Yes, you easily can. In fact, we have support for 12 Analytics companies. Including Google Analytics, Facebook Pixel, StatCounter, QuantCast, Chartbeat, comScore to list a few. Also, we have Google Tag Manager (GTM) support as well.

= Can I add Ads in my AMP pages? =

Yes, you can. We have 6 ad placement slots that are built in and strategically placed to get maximum views. Also, we have [an extension](https://ampforwp.com/advanced-amp-ads/) from which you can insert ads between the content, will get more ad slots and also add custom banners to all the available slots.


= Can I extend/Change the AMP design, so it suits my needs? =

Yes, you easily can. We have created this plugin in such a way that it can easily be extended. Check out our [AMP Theme Framework](https://ampforwp.com/tutorials/article/getting-started-amp-framework/)


= Do you have any prebuilt designs? =

Yes, we have AMP themes section where we have free and paid designs available. We also update it regularly. You can check it out our [AMP Themes](https://ampforwp.com/themes)


= I'm a developer and I want to add custom functionality for a client, can I do that? =

Yes, of course. This plugin is very developer friendly, we have lots of hooks and filters that you can use to extend and customize according to the requirements. Also, we have [developer documentation](https://ampforwp.com/tutorials/article-categories/developer-documentation/) which we update regularly.


= How do I report bugs and suggest new features? =

You can report the bugs [here](https://github.com/ahmedkaludi/Accelerated-Mobile-Pages/issues)

= Will you Add New features to my request? =

Yes, Absolutely! We would suggest you send your feature request by creating an issue in [Github](https://github.com/ahmedkaludi/Accelerated-Mobile-Pages/issues/new/) . It helps us organize the feedback easily.


= How do I get in touch? =

You can contact us from [here](https://ampforwp.com/contact/)


== Screenshots ==
1. AMP Homepage
2. AMP Single Post
3. Post Navigation in Single
4. Sticky Social sharing icons
5. Overlay Navigation menu sidebar.
6. Page builder of the Single article. You can drag and drop any element.
7. Single post of Design One
8. GTMetrix Performance Report
9. Google PageSpeed Insight report for AMP
10. Homepage of Design One
11. Pingdom Speed Report for AMP

== Changelog ==
== Changelog ==
= 1.1.15 (24 July 2026) =
* Fixed : Authenticated (Editor+) Stored Cross-Site Scripting disclosed by Helder Gonçalves
* Fixed : PHP 8.4 Compatibility: Fix "Attempt to read property on int" Warnings in featured-image.php #5740
* Compatibility : improved compatibility with Age Gate Plugin #5739

= 1.1.14 (19 May 2026) =
* Compatibility : Added compatibility with age gate plugin #5727
* Fixed : On enabling Social Share toggle, Disallowed attribute or attribute value present in HTML tag. #5702

= 1.1.13 (22 April 2026) =
* Improvement : flush_rewrite_rules() being called on every admin visit when using Memcached #5725
* Improvement : Showing header and footer in each post in infinite scroll #5729
* Fixed : Fatal error in ServerSideRendering.php: removeAttribute() called on bool #5730
* Fixed : AMP is still showing on posts even after disabling all the options in the General Settings. #5734
* Fixed : After PHP 8.5 Update: Undefined $postID & Null ID Warnings in amp-elementor-pagebuilder.php #5733
* Fixed : Warning for missing social option keys after plugin upgrade #5731
* Fixed : Authenticated (Author+) Arbitrary File Write with Local Font Upload disclosed by Wordfence (Leonid Semenenko)

= 1.1.12 (02 March 2026) =
* Fixed : Fatal error when inmobi privacy mode is enabled #5722
* Fixed : Multiple image candidates with the same width or pixel density found in attribute 'srcset' in tag 'amp-img' when Imagify plugin is active. #5724
* Fixed : Warning in debug log #5723
* Fixed : AMP comment button is broken #5718

= 1.1.11 (08 January 2026) =
* Fixed : Authenticated (Contributor+) Stored Cross-Site Scripting via SVG File Upload reported by Andrea Bocchetti (Wordfence)

= 1.1.10 (23 December 2025) =
* Fixed : CSRF issue for comment submission disclosed by 0N0ise (Wordfence)
* Fixed : Fixed AMP error for labels #5716

= 1.1.9 (25 November 2025) =
* Fixed : PHP Fatal error & More Warnings #5713
* Fixed : Settings are not getting saved #5714

= 1.1.8 (19 November 2025) =
* Fixed : Function _load_textdomain_just_in_time was called incorrectly #5703
* Fixed : PHP Notice: Function _load_textdomain_just_in_time was called incorrectly - Version: 1.1.7.1 #5709
* Fixed : PHP Warning : Trying to access array offset on null #5704

= 1.1.7.1 (27 September 2025) =
* Fixed : Issue persists in AMP plugin version 1.1.7. #5707

= 1.1.7 (26 September 2025) =
* Fixed : PHP Error: Function _load_textdomain_just_in_time #5703
* Fixed : PHP Deprecated:  Creation of dynamic property

= 1.1.6.1 (29 July 2025) =
* Fixed : Settings not saving in version 1.1.6 #5700
* Fixed : Call to a member function hasAttributes() in Document.php (v1.1.6) #5699

= 1.1.6 (28 July 2025) =
* Tested: Tested upto WordPress 6.8.2
* Fixed : Deprecated "Creation of dynamic property" #5688
* Fixed : PHP 8.2 Deprecated Warnings in DOMDocument and Dynamic Property Creation in AMP . #5692
* Fixed : Deprecated Warning: FILTER_SANITIZE_STRING used in framework.php line 2862 #5691
* Fixed : Related post refresh not working #5693
* Fixed : Fatal Error: Undefined Callback ampforwp_getty_image_compatibility in PHP 8.3 #56967

= 1.1.6 (28 July 2025) =
* Tested: Tested upto WordPress 6.8.2
* Fixed : Deprecated "Creation of dynamic property" #5688
* Fixed : PHP 8.2 Deprecated Warnings in DOMDocument and Dynamic Property Creation in AMP . #5692
* Fixed : Deprecated Warning: FILTER_SANITIZE_STRING used in framework.php line 2862 #5691
* Fixed : Related post refresh not working #5693
* Fixed : Fatal Error: Undefined Callback ampforwp_getty_image_compatibility in PHP 8.3 #56967

= 1.1.5 (22 May 2025) =
* Tested: Need to test with WordPress 6.8 #5686
* Fixed : A fatal error occurs when we activate the AMP Page Builder. #5684
* Feature : AMP is not showing .avif images #5670
* Fixed: The attribute 'alt' may not appear in tag 'a'. #5682
* Feature: Conflict issue with Penci widgets. #5683
* Improvement: Need to improve Query of function ampforwp_get_post_percent() #5687

= 1.1.4 (08 April 2025) =
* Feature: Add setting button in Purge AMP CDN Cache #5671
* Compatibility: Need to implement inMobi Choice #5678
* Improvement: Add the close button feature in AMP Stories for better usability. #5680
* Feature: Option to Disable Custom Third-Party Code Injection in AMP Pages #5681

= 1.1.3 (14 February 2025) =
* Fixed: PHP Deprecated: error with AMP #5669
* Fixed: Fatal error on user end  #5673
* Fixed: Error in debug log. #5676
* Fixed: Submit button issue with Amp Ninja Form extension #5667
* Fixed: Need to added the feature in AMP CTA customize button location #5674

= 1.1.2 (03 December 2024) =
* New: Jetpack related post not showing on AMP #5575
* New: Add a new feature to add Whatsapp Group links to Floating Buttons for AMP #5649
* New: Need to added the Subtitle feature in Post/pages in AMP #5665
* Fixed: Security issue reported by "Wordfence" #5662
* Fixed: AMP Pixel URL Issue After Recent Plugin Update 1.1.1 #5663
* Fixed: Function _load_textdomain_just_in_time was called incorrectly #5664

= 1.1.1 (12 November 2024) =
* New : Manual post selection in infinite scroll #5651
* Fixed: Version 1.0.99.1 causing Tag issue. #5650
* Fixed: Errors in debug.log, PHP Deprecated: trim(): Passing null to parameter #5652
* Fixed: GA-4 Analytic not working on infinite scroll post #5656
* Fixed: The Last Modified date appears broken in the AMP version #5659
* Fixed: Feature images are not loading in homepage due to conflict with JNews theme lazyload #5655
* Fixed: Afterpay Gateway for WooCommerce plugin is causing issue in Amp Validator #5643
* Fixed: FV Gravatar Cache plugin conflicts with AMP. #5611
* Fixed: Php error on user end. #5642
* Fixed: The author image added by the "Simple User Avatar plugin" is not showing in the AMP. #5606
* Fixed: Cron reschedule event error for hook #5595
* Fixed: PHP Deprecated: error with AMP #5621
* Test: Test with WordPress version 6.7 #5657
* Improvement : Few improvements required #5630

= 1.0.99.2 (23 October 2024) =
* Fixed: Cross-Site Request Forgery discovered by David Gallagher ( Wordfence )

= 1.0.99.1 (24 September 2024) =
* Fixed: The tag <? is disallowed error in 1.0.99 WITH MENU #5646

= 1.0.99 (23 September 2024) =
* Fixed: Conflict issue with Infinite Scroll option. #5638
* Fixed: Some language characters breaking in amp footer #5627 , #5639 , #5620
* Fixed: Code Improvement #5630

= 1.0.98 (9th August 2024) =
* Fixed: PHP errors and warnings #5617,#5624,#5619,#5628,#5629,#5626
* Fixed: Disqus comments are not showing on the AMP. #5353

= 1.0.97 (22nd July 2024) =
* Fixed: Stored Cross-Site Scripting via SVG File Upload (Reported by Wordfence)
* Fixed: Contributor+ Broken Access Control discovered by Rafie Muhammad (Patchstack)
* Fixed: PHP Deprecated: error with AMP #5621
* Fixed: Disqus comments are not showing on the AMP. #5353
* Fixed: Warning in query monitor, "Array to String Conversion" #5610
* Tested: WordPress version 6.6 #5618

Full changelog available [ at changelog.txt](https://plugins.svn.wordpress.org/accelerated-mobile-pages/trunk/changelog.txt)
