get_module('amp'); $sxg_status = ($amp_module && method_exists($amp_module, 'check_infrastructure_status')) ? $amp_module->check_infrastructure_status() : []; ?>

⚡ AMP Configuration

Accelerated Mobile Pages for faster loading on mobile devices

Generate AMP versions of your content for faster mobile loading

true], 'objects'); $enabled_types = $amp_options['post_types'] ?? ['post']; foreach ($post_types as $post_type): ?>

Logo for structured data (600×60px recommended)

Google Analytics tracking ID for AMP pages

🔐 Signed Exchange (SXG) Support

Enable AMP pages to be served from original domain while cached by Google

Infrastructure Requirements

[ 'title' => 'amppackager Binary', 'description' => 'Go binary installation required', 'status' => $sxg_status['amppackager_binary'] ?? false, 'docs' => 'https://github.com/ampproject/amppackager' ], 'certificate_authority' => [ 'title' => 'Supported SSL Certificate', 'description' => 'Certificate from supported CA (Let\'s Encrypt, DigiCert, etc.)', 'status' => $sxg_status['certificate_valid'] ?? false, 'docs' => 'https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/signed-exchange/#certificates' ], 'server_control' => [ 'title' => 'Edge Server Control', 'description' => 'Ability to control HTTP headers at server level', 'status' => $sxg_status['server_control'] ?? false, 'docs' => 'https://amp.dev/documentation/guides-and-tutorials/optimize-and-measure/signed-exchange/#server-requirements' ], 'network_connectivity' => [ 'title' => 'Network Access', 'description' => 'Outgoing requests to CA, publisher, cdn.ampproject.org', 'status' => $sxg_status['network_connectivity'] ?? false, 'docs' => null ] ]; foreach ($requirements as $key => $requirement): ?>

WordPress-Level Preparation

This plugin can prepare your WordPress site for SXG, but cannot implement the full SXG infrastructure.

Add SXG-compatible headers and meta tags (WordPress level only)

Environment Testing

Test if your server environment can run amppackager binary before proceeding with setup.

Setting Up Full SXG Support

1. Server Requirements
  • Linux server with root access (not shared hosting)
  • Go runtime environment installed
  • Ability to configure web server (Apache/Nginx)
  • SSL certificate from supported CA
2. Install amppackager
# Download and install amppackager
wget https://github.com/ampproject/amppackager/releases/download/latest/amppackager
chmod +x amppackager
sudo mv amppackager /usr/local/bin/

# Create config directory
sudo mkdir -p /etc/amppackager
3. Configure Web Server

Configure your web server to:

  • Vary responses on Accept and AMP-Cache-Transform headers
  • Proxy SXG requests to amppackager
  • Serve different content for the same URL based on headers
4. Maintenance
  • Update amppackager every 6 weeks
  • Monitor certificate expiration
  • Ensure persistent storage for amppackager instances

Compatible Hosting Solutions

✅ VPS/Dedicated Servers

Full control over server configuration

  • DigitalOcean
  • Linode
  • AWS EC2
  • Google Cloud
⚠️ Managed WordPress

May require hosting provider support

  • WP Engine (contact support)
  • Kinsta (enterprise plans)
  • Pantheon (custom)
❌ Shared Hosting

Cannot install binaries or control headers

  • Most shared hosting providers
  • Blogger
  • WordPress.com

🔧 Testing & Validation

Tools to test and validate your AMP implementation

AMP Validation

AMP Validator →

Test your AMP pages for compliance

Google Search Console

Search Console →

Monitor AMP status and errors

AMP Test

Google AMP Test →

Test AMP pages in Google's tools

SXG Documentation

AMP SXG Guide → SXG Implementation →

Official documentation and implementation details