How to block Adsense Ads in A Post?

Discussion in 'WordPress' started by jacky8, Feb 7, 2010.

?

Should there be a Ad Block Function in Your Wordpress Posts?

  1. Yes, it will be very useful

    2 vote(s)
    66.7%
  2. I won't mind if its there.

    0 vote(s)
    0.0%
  3. Don't need it

    1 vote(s)
    33.3%
  4. It should not be there. No Way

    0 vote(s)
    0.0%
  1. #1
    Hello friends,

    There are certain blog posts where i donot want to show adsense ads. I use Adsense Now plugin.

    This plugin simply inserts ads into all the posts. It is easy to use.

    What i want:
    While using the same plugin i use currently, there should be an option to block ads in every post. Then i can simply uncheck it if i don't want ads to show.

    What can i do here? Do i require a custom coded plugin? I'm sure this will be easy work for someone who knows php and wordpress. And this plugin will be useful to thousands like me.

    Any comments will be appreciated.

    Thanks,
    jacky8
     
    jacky8, Feb 7, 2010 IP
  2. SuburbanDollar

    SuburbanDollar Peon

    Messages:
    31
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use Who Sees Ads (WSA) to insert my adsense into posts, I have certain categories where I don't want ads to show up so I use custom rules in WSA to define which categories it shouldn't show up in. The custom rule looks like this:

     if(!(in_category(13) || in_category(292))) {Display}
    Code (markup):
     
    SuburbanDollar, Feb 8, 2010 IP