Widget Logic and Wordpress Conditional Tags

Discussion in 'WordPress' started by trosquin, Oct 27, 2009.

  1. #1
    I have widget logic which allows me to show certain widgets on certain pages....so if I only wanted to show my reciprical link exchanges on my home page I would enter in is_home()

    NOw how about if I want to show the widget on all pages except a certain page i.e. about us or contact us?
     
    trosquin, Oct 27, 2009 IP
  2. tntbase

    tntbase Greenhorn

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #2
    you can use something like this:
    !is_page(1,2,3) and the pages with id=1, id=2 and id=3 will be excluded
     
    tntbase, Nov 12, 2009 IP