This page short URL: 9y

In most cases, weeblrAMP (or WordPress or other plugins) already lets you decide or set global page information such as the author of a piece of content, or a representative image of the page, but not always. The image specifically is mandatory for any AMP page if it is to appear on the AMP Carousel or Top Stories aread in Google search results, and so weeblrAMP has a mechanism to let you specify the desired image or author, right from the content.

You do this by adding a meta tag in your content, from your WYSIWYG editor for instance. The tag will look like this:

[wbamp-meta name="meta_tag_name" param1="xxxx" param2="yyyy" ...]

The list of possible meta tags is as follow:

Date Published and Date Modified

weeblrAMP may be able to figure out the publication and modification date of your content. It will do so for most posts and pages. You can however insert tags to set those dates yourself, for instance to provide dates for other types of content. The syntax is as follow:

[wbamp-meta name="date_published" content="2016-03-11"]
[wbamp-meta name="date_modified" content="2016-03-11"]

You can have alternative syntax for the date and time:

[wbamp-meta name="date_published" content="2016-03-11 01:02:03"]
[wbamp-meta name="date_modified" content="2016-03-11 01:02:03+04:00"]

Document type

Accelerated Mobiles Pages should be marked with a @type element. Most often, this is either NewsArticle or BlogPosting. weeblrAMP lets you select the default value for all your pages, but you may select a specific type on a page by page basis, using:

[wbamp-meta name="doc_type" content="NewsArticle"]

or

[wbamp-meta name="doc_type" content="BlogPosting"]

AMP allows various document types, at the moment they should derive from the Article type, described on this page of the Schema.org website.

Document name

Accelerated Mobiles Pages should sometimes have a be marked with a name element. This is required, for instance, for Recipe document. You can enter a custom name for a speficic content item with:

[wbamp-meta name="doc_name" content="My very special cheesecake recipe"]

Image

This is the image meant to represent the page as part of the AMP structured data set (json-ld). It should be used by Google Top stories or AMP Carousel in search results. As usual with images, you should specify width and height. If you don't, weeblrAMP will try to read it and determine the width and height automatically.

[wbamp-meta name="image" url="/wp-content/uploads/2018/03/post-213-image.png" height="750" width="1200"]

The URL to your image can be either absolute (ie start with a full domain such as https://weeblr.com/images/images/mypage-image.jpg) or relative (ie start without even a slash: images/mypage-image.jpg

An image can only be used to represent your content if it complies with:

minimum width: 1200px minimum pixels count: 800,000 image types: jpeg, png or gif image must belong to the page

Author

[wbamp-meta name="author" content="Yannick Gaultier" type="Person"]

Note: The author "type" can also be an Organization.