ok this worked
PHP Code:
if ($current_page_base == 'product_info' and $_GET['products_id'] == '123') { echo '<link rel="amphtml" type="text/css" href="https://MYDOMAINNAME.com/my-url-1.html">';}
if ($current_page_base == 'product_info' and $_GET['products_id'] == '234') { echo '<link rel="amphtml" type="text/css" href="https://MYDOMAINNAME.com/my-url-2.html">';}
You would keep repeating the entries in tpl_main_page.php and where it reads $_GET['products_id'] == '234') - enter your product id.
HTML Code:
<link rel="amphtml" type="text/css" href="https://MYDOMAINNAME.com/my-url-2.html">
- would be the link to your AMP page
Thanks for the help guys, if you have anything else to add to this please let me know
Bookmarks