2. Now the code that does your magic is in this section, But before that create a file in the same folder as our main Custom plugin file called ‘featured-image.php’ with you custom code for featured Images on all designs
This should be your folder structure
Your code for featured-images.php file along with your custom code
//Write your code here
Now code that actually is doing the magic goes into index.php as below
A lot of people have been reporting ‘Duplicate Title’ tag issue in the AMP version. This error has been reported specifically under the ‘HTML Improvements’ section of Google Search console. And It’s not just our plugin, it’s been happening with every AMP user in the World.
You have to understand that AMP is supposed to show the same content, title, and description as it is on the main page. You wouldn’t want to serve different content on AMP & Non-AMP version, right?
So, the question is how to solve this?
From my experience, the search console should not report these errors in the first place. The reason why I say this is because we are already using canonical tag properly on AMP. So, you should not at all worry about the content duplication. AMP is very new and I think Search console is yet to calibrate to it.
I have also researched this on the web and went through the google webmaster forums. Here are my findings:
Barry Hunter on this thread is saying “They are duplicate, so can be reported as such. … doesn’t mean its problem. You’ve got canonical setup. You can move on to worrying about something else.”
We still don’t have an official word from Google on this. but I will keep on updating this document when I have something worth sharing on this topic.
After installing & activating both AMP & AMP for WP plugins, you have to Upload one more extension Named “ Advance AMP Ads ” Extension, in order to use DoubleClick Ads (DFP), In content Ads, Sticky Ads on your AMP. You can also place Third Party Ads using Advance AMP Ads.