=== 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: 6.7
Stable tag: 1.1.4
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 ==

= 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

= 1.0.96.1 (1st July 2024) =
* Fixed: Update Twitter Icon as X  in author box #5609
* Fixed: AMP footer Menu showing as text for some users

= 1.0.96 (28th June 2024) =
* Fixed: Featured image caption is not working #5574
* Fixed: PHP deprecated error (PHP 8.2) #5587
* Fixed: PHP warning message displayed on the user's end. #5594
* Fixed: Publisher desk "Dismiss" button is not working.  #5591
* Fixed: PHP error on the user end. #5605
* Fixed: Undefined property: stdClass::$inContentPlacementMethod #5607
* Fixed: While using the News12Paper theme and tagDiv Composer plugin, there is an issue with the AMP menu (user-end issue). #5608
* Fixed: Change Twitter as X #5609
* Fixed: Amazon auto links are not working on AMP #5583

= 1.0.95 (7th May 2024) =
* Fixed: rtrim(): Argument #1 ($string) must be of type string, WP_Error given #5588
* Fixed: Issue persist due to recent update with poll maker plugin #5585
* Fixed: PHP Warning: Attempt to read property "ID" on null #5589
* Test: Test with new version of wordpress i.e. 6.5v #5581
* Fixed: Validation issues in images when using Pencil builder #5592

= 1.0.94 (3rd April 2024) =
* New: Added Shortcode so that user can show or hide some content in AMP. #5474
* Improvements: Code improvement part 2 #5567
* Fixed: Warning appears related to author-box #5577
* Fixed: The excerpt is not showing inside the em tag in AMP, and the font is not working. #5487
* Fixed: Issue with a cookie banner (GDPR) #5561

= 1.0.93.2 (1st February 2024) =
* Fixed: Video docking not working in AMP Newspaper theme #5566
* Fixed: Video not loading on Amp if video set in Soledad theme Video Embed. #5571
* Fixed: Authenticated(Contributor+) Arbitrary Post Deletion Vulnerability (Reported by Wordfence)

= 1.0.93.1 (22nd January 2024) =
* Fixed : CSS syntax error in the 'style amp-custom tag #5564

= 1.0.93 (19th January 2024) =
* New: Compatibility with the plugin WP No Base Permalink #5541
* New: An option of "AMP Alternative Menu—Below the Header" when Theme Design is set on Three #5545
* New: An option to add the "View NON-AMP version" link in the hamburger menu #5466
* New: An option where, users can add the single-post design to pages #5482
* Fixed: Code Improvement #5550
* Fixed: Change Twitter icon everywhere #5551
* Fixed: Amp backend design conflict with Vani Theme #5552
* Fixed: Debug warning #5554
* Fixed: Slider Revolution images not showing on AMP #5555
* Fixed: Dual-feature image is visible in the Design Three theme #5556
* Fixed: CRITICAL Uncaught TypeError - 'property_exists()' Critical Issue" #5557

= 1.0.92.1 (16th December 2023) =
* Fixed:  Cross-Site Scripting issue on shortcode [amp-gist] for contributer+ access (Reported by Wordfence)

= 1.0.92 (18th November 2023) =
* New: Compatibility with Publytics.net #5477
* Fixed: Add a filter to modify unused CSS #5478
* Fixed: Local Fonts option not working properly. #5506
* Fixed: Autoload is termed as yes in wp_options. #5523
* Fixed: Deprecated error in query monitor #5527
* Fixed: PHP Fatal error appears in AMP #5539
* Fixed: CSS issue with 1.0.91 Version #5540
* Fixed: Invalid Layout Issue in AMP HTML Tag for Missing 'height' Attribute. #5542
* Fixed: Getting blank screen on amp pages #5546
* Fixed: Images from Slider revolution plugin not visible in AMP #5548

= 1.0.91.1 (20th October 2023) =
* Fixed: Version 1.0.91 breaks Swift Theme #5537

= 1.0.91 (16th October 2023) =
* New: Compatibility with webpushr notification #5517
* Fixed: Jetpack Stats are not showing in the AMP. #5495
* Fixed: Double curly brackets parsed from {{}} to %7B%7B%7D%7D in src attribute in amp-iframe component #5522
* Fixed: Amp Validation Error in New update #5528
* Fixed: A warning (Warning: Undefined property: WP_Post_Type::$taxonomy) is appearing on the AMP version #5532
* Fixed: The author link and date not showing properly on the homepage #5533
* Fixed: AAWP Images not loading if WebP Express is active #5535

= 1.0.90 (26th September 2023) =
* New: An option to configure the number of posts appearing on Homepage & Category page #5503
* Fixed: PHP notice on style.php #5514
* Fixed: Star rating are broken, showing numbers instead of stars #5516
* Fixed: Validation error from recent AMP update version 1.0.88.1 #5518
* Fixed: Fatal error in setting panel #5521

= 1.0.89 (14th September 2023) =
* New: Piwik Pro Analytics #5510
* New: compatibility with EmbedPress #5486
* Fixed: Conflict WP-Bakery page builder with AMP #5417
* Fixed: Warning in error log #5504
* Fixed: Uncaught ValueError: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty #5512
* Fixed: Header Font Size Offset Changing After Update 1.0.86 #5496
* Fixed: Various deprecated warning in PHP 8.2+ related to dynamic property creation #5515
* Fixed: Added post data variables in GTM advanced code #5498


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