How to Switch Off adsense in Post??

Discussion in 'AdSense' started by resaik_king, Nov 11, 2009.

  1. #1
    I have new blogpost and I don't want adsense to show in that page. What would I do??
     
    resaik_king, Nov 11, 2009 IP
  2. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #2
    are you using any plugins to show adsense ? or using adcode in the blog ?

    u can code in single.php in wordpress to such thing
     
    chandan123, Nov 11, 2009 IP
  3. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #3
    My adsense code is integrated in my theme

    what is single.php? how?
     
    resaik_king, Nov 11, 2009 IP
  4. Lithiummind

    Lithiummind Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Which part is your adsense appearing in? if the header it will be header.php or if it's in the body check index.php or single.php
     
    Lithiummind, Nov 11, 2009 IP
  5. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #5
    single.php will be in your theme folder which is used when a single post need to be displayed.
     
    chandan123, Nov 11, 2009 IP
  6. resaik_king

    resaik_king Active Member

    Messages:
    1,049
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    80
    #6
    it is in single.php but I don't want it to show in a certain post

    is there a php code that can track this URL ESP(domain.com/dont-want-toshowhere)

    if(url = domain.com/dont-want-toshowhere)
    {dont show ads}
     
    resaik_king, Nov 11, 2009 IP
  7. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #7
    there is get_permalink(); function in wordpress and using that u can code that :)
     
    chandan123, Nov 12, 2009 IP
    resaik_king likes this.