Enable AMP for WordPress Pages
-
Hey guys,
I’m trying to enable AMP pages for WordPress Pages, using the piece of code from plugin’s readme page on GitHub, but no luck.
Here is the code I’m using:
function xyz_amp_add_review_cpt() {
add_post_type_support(‘page’, AMP_QUERY_VAR);
}
add_action(‘amp_init’, ‘xyz_amp_add_review_cpt’);I would appreciate any pointers!
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Enable AMP for WordPress Pages’ is closed to new replies.