I have created a file in theme folder name with: “blog-small-image.php”
and write template name: “Blog Small Image”
<?php
/*
Template Name: Blog Small Image
*/
——
——-
———
My php code to get dynamic data.
———
————
?>
Then i create a page in admin pane and called this template and It’s working without AMP url but not working with AMP Url
My Page name is: “CPA Exam Blog”
Hi @amit2infugin,
You are creating the custom template for the non-amp version. And to render the custom template in AMP, you’ve to do some customization and you can be done by using the “AMP theme Framework”. Here is all tutorial to creating the customization: https://ampforwp.com/tutorials/article-categories/amp-theme-framework/
Hope it helps.
Thank you