Horje
Plugin to display recent posts in your AMP template, with links to AMP articles (visitor is not redirected to regular website).

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 the Tips Below.

Start the Tips:

1. First Download "amp-recent-posts.zip" Plugin to your Local Computer. (Click Download)

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

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

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"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "AMP Recent Posts" folder is added on left sidemenu. Now, Click on "AMP Recent Posts" folder.

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

8. Now you configure yourself oR Watch video tutorial below about AMP Recent Posts Configurtions 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') )
?>

visitor, articles, redirected, regular, website, links, template, display, recent, posts,

Name

Reffered: https://wordpress.org/

Share on: