SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot thomasr's Avatar
    Join Date
    Apr 2009
    Posts
    174
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Widget Logic and Wordpress Conditional Tags

    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?

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Code:
    if (!is_page('About Us') && !is_page('Contact Us'))
    http://codex.wordpress.org/Function_Reference/is_page


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •