Apr 19 2008

Integrating Google AdSense and WordPress without a plugin

Published by Eric at 1:29 pm under Blogs, Web 2.0

WordPress logoI was using Martin Fitzpatrick’s excellent plugin called AdSense Manager to handle Google ads on my blog. Version 2.x worked well but version 3.x stopped working properly with sidebar widgets and the admin interface failed to commit certain page changes.

My quest to find a solution was unsuccessful so I trashed the plugin and looked for an alternative. Other WordPress plugins looked weak in comparison so I went old-school and within 15 minutes I had a working replacement using a few lines of PHP and JavaScript code from Google. While it’s not as convenient as a plugin, it works fine with sidebar widgets.

Thanks to tamba2’s excellent (and brief) how-to guide.

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.