How to Insert Adsense Ads Into WordPress Posts

by Michael on November 6, 2009 · 4 comments

Have you ever wondered about the best way to insert Adsense ads into your WordPress posts? Placing ads around your content is easy enough — just code it into your theme. But what about embedding them within your content?


While there are much fancier ways of doing this, my preferred approach is to use this simple little plugin (sorry, that link is dead so I removed it) that I ran across several years ago.

Simply upload the plugin, activate it, paste your Adsense code into the plugin file, and you’re ready to go. To insert an ad, simply use the following tag:

<!--adsense-->

The way I’m currently using this here on jammer(six) is to write a short intro paragraph followed by the <!--more--> tag. I then insert the <!--adsense--> tag, and then pick up the writing with paragraph #2, as follows:

Text of paragraph #1…

<!--more-->

<!--adsense-->

Text of paragraph #2…

Text of paragraph #3…

And so on…

This means that, whenever a reader views individual page on your site, there will be an Adsense ad sitting between the first and second paragraphs.

If they start out on your front page, they won’t see this ad, but clicking on the ‘Read more’ pull up the remainder of the article including the ad.

Something else to keep in mind is that, while this plugin is intended to be a tool for inserting Adsense code, you can actually use it to insert any type of code into posts. The only downside is that you have to manually insert the tag. One nice touch, however, is that the plugin ads a button to the WordPress editor so you can insert the tag with a quick click while writing.


{ 4 comments… read them below or add one }

TechMaish December 16, 2009 at 3:06 pm

I am confused. How to use this plugin.

Reply

Vera September 5, 2010 at 11:29 am

Link to plugin is broken

Reply

Michael September 5, 2010 at 12:09 pm

Hmmm. Looks like the site went down, because the link is right. I’ll keep an eye on it and see if it comes back up.

Reply

web site December 18, 2013 at 3:39 pm

This piece of writing will assist the internet viewers
for building up new webpage or even a weblog from start to end.

Reply

Leave a Comment

Previous post:

Next post: