• I have used amp_post_template_file to point to a completely new template which includes the amp_post_template_head, amp_post_template_css and amp_post_template_footer actions. Appending /amp to a posts url works and my pages validate bar the content.

    And that’s because the “AMPlification” of content (e.g. IMG > AMP-IMG) isn’t happening. It works fine if I don’t use the custom template.

    I suspect I have missed a step but it could also be a bug? Any help would be appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter mgcwebsites

    (@mgcwebsites)

    My Bad! I’ll leave the solution here to help others:

    If using a custom template you need to use $this->get( ‘post_amp_content’ ) rather than the_content() to get the modified post.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom template breaks “AMP-lification”’ is closed to new replies.