Plugin to display recent posts in your AMP template, with links to AMP articles (visitor is not redirected to regular website).
Recent posts can be implemented alongside any AMP plugin by shortcode and allows to customize the endpoint of the links (to fit the AMP plugin you are using), add a title, and set a limit to the total amount of links.
NEW IN 2.0
If you make use of the popular AMP plugin by Automattic you can now use of the new options page! The plugin uses the AMP footer hook to add Recent Posts to your AMP content and comes with a series of new functions:
- Post type support: return posts, pages or any other including custom post type
- Display featured images
- Display the date
- Exclude posts by ID
- Change the priority of the hook
As well the default options of setting a custom endpoint, heading and max number of posts.
Installation AMP recent posts plugin
Using the AMP plugin by Automattic:
- Upload and activate plugin
- Visit the plugin options page and set your preferences
Using shortcode:
- Upload and activate plugin
- Place this code in your AMP template:
For more information please visit the official plugins page.
Hi,
A nice plugin but I have two issues.
If I use it on various themes, it is putting the recent posts below the footer. I have tried playing around with the settings.
My setups use SEO yoast + glue and the normal AMP plugin
If I us the shortcode version then I don’t get the featured images / date etc. Fair enough but it is putting an extra at the end of the list of recent posts. I have tried to remove this but have not found where it is being added in.
I have tried using the shortcode directly in the amp template file and also via the functions.php file so it appears just after the content.
Here is an example,
https://www.conceptint33.com/covering-carbone-vinyle/amp/
Regards
David
David, yea I am aware that the AMP native footer places itself above the footer hook, why Automattic does this I do not know. There is a simple solution thought, either change it in the AMP template (move footer hook down OR use our ‘AMP Footer Widgets’ plugin which has an option to hide the native footer and replace it with a better (fully marked up credits footer) one.
It seems like you have missed a closing tag i.e on the shortcode function.
Thanks for your feedback David, I will probably be able to have a look at this later tonight!
Hi David, unfortunately I am not able to reproduce the error. The shortcode is working well for me in the template, do you have the latest version of the plugin? Please send any further communication over this directly to my email tech[at]jaaadesign.nl, so I can make sure this is at you end only.