Apr 27 2006

Google AdSense and Wordpress 2

The Social Programmer

If you are using Google AdSense make sure that your AdSense code is protected from WordPress’s new Preview feature. Easily achieved using something similar to this

< ?php global $wp_query; if (!$wp_query->is_preview): ?>
// Paste your AdSense code here //
< ?php endif; ?>

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment