#91 – Changing Default article type

Posted in ‘Presale’
This is a public ticket. Everybody will be able to see its contents. Only enter usernames, passwords or any other sensitive information in the Private information field.
Saturday, 09 June 2018 16:41 UTC
I am evaluating your plugin and one thing I can't figure out is "Select the default article type to use for your AMP pages. You can override this value on each page with custom meta data shortcodes."

How do I go about doing this? Right not I have it set to WebPages, but I want to have blog posts be BlogPosting.

Thank you,
Monday, 11 June 2018 06:56 UTC

There are 2 ways to do this, depending on what you are familiar with:

1 - include shortcodes in your content. This is described in the documentation on this page.

2 - Using the weeblramp_get_jsonld_data filter, where you can modify the content of the AMP meta data. See the filter documentation here.

The second method can be more powerful, as the filter will give you the WP_Post object and you can decide to change the DocumenType based on the post type, automatically. It does require some PHP progamming. If you go that way, please note that AMP-specific filters must NOT be put in your functions.php. They must live in an AMP-specific functions.php file, as described here in the documentation.

Best regards
Tuesday, 26 June 2018 05:34 UTC
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.