How to NOT display AdSense under 2 condition in WordPress?

Discussion in 'PHP' started by VincentChow, Apr 17, 2007.

  1. #1
    How to NOT display AdSense under 2 condition in WordPress?

    First off, I use is_single so that my AdSense will only show in single post. Later, I want one of my post not to display AdSense. I use !is_single('Beef Stew'). And now, I want the AdSense only display when it is in single post and not in the "Beef Stew" post.

    How do I exactly write the php so my AdSense only appears when it is in single post and not in the Beef Stew post? I don't want it to display on my blog home. Thanks.
     
    VincentChow, Apr 17, 2007 IP
  2. duilen

    duilen Active Member

    Messages:
    354
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    58
    #2
    if (is_single() && !is_single('Beef Stew'))

    try that...i havent tested it so no guarantees.
     
    duilen, Apr 17, 2007 IP