Plugin to have AMP articles indexed faster and more regularly, generates a list of links (via shortcode) of AMP articles.
Read all about implementing AMP into your website: WordPress AMP (Accelerated Mobile Pages) tutorial, here you will also find a possibility to generate an AMP sitemap by use of the Genesis Display Posts Shortcode plugin.
An HTML sitemap is a list of names and links of your pages and posts in the front end of your website. It can be useful for users to get a good overview of the content you’re presenting. For bots it is equally useful since the internal links send them to the farest corners of your website, which could help indexation greatly.
Strictly taken AMP does not need a sitemap (HTML or XML) if the content is marked up correctly: engines know where AMP content is by this piece of code present in your regular pages:
That being said there could be several reasons to use an AMP HTML Sitemap:
- You want your AMP content to be indexed faster and more regulary. In case you don’t have much traffic, external links or good internal linking structure indexation could take a while. An HTML sitemap will improve your internal links and if you add the URL of the sitemap to your current XML sitemap plugin, search engines will gain information on the AMP content by automatic submission of your XML sitemap. (see ‘Addditonal tips’ at the bottom of this page)
- You have ‘stand alone’ AMP content. Seen as there are no links pointing to content that is only reachable by AMP (because they miss the link from the regular page and naturally don’t occur in menus) it can take a long time for them to be indexed.
- You have an HTML sitemap for regular content and simply wish to add your AMP content to it
And in that case, this plugin is for you.
Installation AMP Sitemap:
- Upload en activate the plugin
- Place the below shortcode in a page or post (click the image to download the shortcode):
Customizing the output of the AMP Sitemap plugin:
- append=’amp’ change the slug to point to your AMP verion. 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 Automatic).
Example: append=’amp-post’ will generate a slug ‘yourwebsite.nl/post/amp-post/’
- heading=’AMP’ will add an H2 heading, standard: none
- max=’5′ will set a limit to the amount of posts displayed:, standard: 5000
- cpt1=’page’ NEW IN VERSION 2.0: support for 3 custom post types. Use the attributes ctp1=”, cpt2=” and cpt3=” to add new post types such as page, product or any other. Standard: only posts
- The shortcode can now look like this:
The shortcode can now look like this (click the image to download the shortcode):
…what will result in in:
AMP HTML Sitemap
Additional tips:
- For regular indexing add the URL of your sitemap page to the sitemap plugin you use (we use Google XML Sitemaps): just copy/paste the URL in the plugin admin)
- You can also use this URL to add it manually to be indexed via Google Webmaster Tools.
Good luck and we love to hear your results!
Matt Cutts on HTML and XML sitemaps