• Resolved danielkuipers

    (@danielkuipers)


    Hello,

    I installed the AMP plugin by Automattic and installed the plugin Glue voor Yoast SEO & AMP.

    The website has different post types. Whenever I used the post type ‘posts’ it works correctly. I want AMP to work on the post type called “knowledge base”. I don’t know if that is the correct translation because in Dutch it is called “kennisbank”. Do you know why it doesn’t work?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @danielkuipers,

    I ran in to this problem myself, I found that the readme that’s provided with the plugin has a lot of useful information on available customisations you can make to the AMP plugin.

    This part in particular should help you out, in your case just replace ‘xyz-review’ with the knowledge base custom post type slug:

    add_action( 'amp_init', 'xyz_amp_add_review_cpt' );
    function xyz_amp_add_review_cpt() {
    	add_post_type_support( 'xyz-review', AMP_QUERY_VAR );
    }

    Hope that helps!
    Matt

    Thread Starter danielkuipers

    (@danielkuipers)

    Hello Matt,

    Thanks for your response. Where do i add this?

    Plugin Author Weston Ruter

    (@westonruter)

    @danielkuipers You can add it to your theme’s functions.php file, or you can create a new plugin that that just contains this code.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘AMP doesn’t work on all Post types’ is closed to new replies.