How to customize adsense display for Paid Post

Displaying adsense inside post or in between  title and post content is a very  common thing in most of the blogs. And if you write paid post, then the sponsors would not like to display any ads in between in the sponsored post. And to overcome this you can do the following steps

1. Create a separate category for all the review post or sponsored post e.g;- Reviews

2. Make a the following code in your wordpress blog to exclude adsense display for the review posts. in the Main Index Template or index.php

<?php if (! in_category(26)) { ?>
<script type=”text/javascript”><!–
 Adsense Code
</script>
<?php }?>

where 26 is the category id for Reviews category.

3. Save index.php

4. Create the sponsored post with category for the post as Reviews.

This should help for blogger’s who want to display ads for posts other than Sponsored Post.

Technorati tags: , ,

Related articles:

  1. Integrating Related Post plugin with a Yahoo Wordpress blog. Related Post plugin for Wordpress is a very useful plugin...
  2. How to link a YouTube video in a wordpress blog post? If you want to link a YouTube video in your...
  3. Google Adsense for Mobile Website Google has announced Adsense for mobile. In the adsense...
  4. Articles Base – A Google Adsense publishers addiction to click income. In Articles Base, Steve Szasz has a posted a very interesting...
  5. Google ADSENSE and Violation of Copyrighted MATERIALS Couple days back I had received an email from Google...

Leave a Comment

{ 1 trackback }

Previous post:

Next post: