• This ‘AMP’ plugin seems to only support all those posts whose post type is ‘POST’. I need support for custom post types which I use on my blog. I have tried to change ‘add_rewrite rule’ but it does not work. Please advise. I will pay for thorough extended support.

Viewing 1 replies (of 1 total)
  • Try the following in your themes functions.php file:

     function amp_add_cpt() {
        add_post_type_support('CUSTOM-POST-TYPE', AMP_QUERY_VAR);
      }
      add_action( 'amp_init', 'amp_add_cpt' );
Viewing 1 replies (of 1 total)
  • The topic ‘Only post type “Post” supported?’ is closed to new replies.