I want to use Google Adsense code snippets in my blog posts, so in my single.php.
However, when I do so, then my RSS feed becomes invalid because of the javascript code in the content and the feed won’t be updated anymore.
Is there ANY way to fix this?
I still have the Google Adsense code in the sidebar where it’s not causing any issues.
I’ve seen lots of blogs that have Google ads in their blog posts and a functioning RSS feed, so it seems to be possible, but how?
Or rather, why is it causing problems in my case?
I’ve done a looooooooot of research, but couldn’t find ANY information about this issue.
I think that means that it’s not a very common problem.
I really hope somebody can help me with this BIG problem.
Would something like this work? http://chaosinacan.com/programming/adsense-without-blocking/
For reference, here’s my website: http://zoomingjapan.com/
Here’s my feed: http://zoomingjapan.com/feed/
Thanks a lot in advance!
Do not paste the Adsense code into the blog posts. Use a plugin instead.
Sample Plugin:
Usage:
$adsense
to whatever you need.wp-content/plugins/
.wp-admin/plugins.php
.Thatâs all.