Hi there,
We use the plugin ad inserter and then short codes so we can change the adverts easily in one place not page by page but by,
adding this code under our normal advert code for the main site it worked a treat for AMP pages
<amp-ad width=”300″ height=”200″ type=”adsense”
data-ad-client=”ca-pub-1472451198705302″ **change to your own
data-ad-slot=”6115677183″> **change to your own
</amp-ad>
For related posts see this article here
http://isabelcastillo.com/related-posts-wp-amp
You can check our main site page here
http://thewhiteisle.co.uk/ibiza-2016-preview-part-3/
AMP version here
http://thewhiteisle.co.uk/ibiza-2016-preview-part-3/amp
hope this helps
Tristan
Thread Starter
JavaDjie
(@adjiepurbojati)
Thank u so much Tristan,
But if tomorrow this plugin have update, is there any edit will be lost?
Hi,
No I don’t believe so, ad inserter keeps all settings / ad codes on updates and the related posts uses the functions.php file so again it should be ok 🙂
Tristan