Banner for Amp Recent Posts
Plugin to display recent posts in your AMP template, with links to AMP articles (visitor is not redirected to regular website). Wordpress Tutorial
Noted That:
  • To install correctly this amp-recent-posts.zip .
  • Fisrt Download the amp-recent-posts.zip to your computer
  • Extract/Open amp-recent-posts.zip to Your Computer.
  • Then, Find readme.txt file inside amp-recent-posts.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " amp-recent-posts.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Amp Recent Posts

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Amp Recent Posts

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Amp Recent Posts

Step-5 : Now, Browse " amp-recent-posts.zip " Downloaded plugin from your computer, Where you downloaded " amp-recent-posts.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Amp Recent Posts

Step-6 : Now, Click on " Active Plugin "

Activate Amp Recent Posts

Step-7 : Then, See left Side Menu. " Amp Recent Posts " folder is added on left Side Menu. Now, Click on " Amp Recent Posts " folder.

Noted that: If you do not see " Amp Recent Posts " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Amp Recent Posts Configurations and Settings or How to work " Amp Recent Posts " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " AMP Recent Posts " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is AMP Recent Posts
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Using the AMP plugin by Automattic

  1. Upload and activate plugin
  2. Visit the plugin options page and set your preferences

Using shortcode

  1. Upload and activate plugin
  2. Place this code in your AMP template:

Shortcode: Customizing the display of the AMP Recent Posts plugin:

  • append=’amp’ change the endpoint to suit your own. Depending on which AMP plugin you are using you can adjust the slug to direct to the AMP articles, standard: ‘amp’ (appropriate for the AMP plugin by Automattic).

Example: append=’amp-post’ will generate a slug ‘yourwebsite.nl/post/ amp-post /’

  • heading=’Recent Posts’ will add an H3 heading, standard: none

  • max=’5? will set a limit to the amount of posts displayed:, standard: 10

  • The code can now look like this:

Depreciated and backwards compatibility

If you are using the AMP plugin by Automattic you might have used a custom hook to implement the code in your theme’s functions.php file. Since the 2.0 update this can now be handled by the plugin setting on the options page. If you wish to keep using the hook please update it like so:


//* Add content to the AMP template footer (AMP plugin Automattic)
//* Place in your theme's functions.php
function add_rec_to_amp_footer() {
if ( function_exists('is_amp_endpoint') )
?>



Name