WordPress.org

Ready to get started?Download WordPress

Forums

Conditional Tags: (isn't) instead of (is) ? (3 posts)

  1. gervaisjf
    Member
    Posted 4 years ago #

    Hi,

    I want to use conditional tags to prevent a widget from showing up on the home page. Is there a way to tell WordPress to show the widget when it isn't the home page instead of when it is with this code: is_home()

    Basically, I want a isn't_home() :)

    Thanks for any tips,

    JFG

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    !is_home()

    An exclamation mark before a condition reverses the logic ...

  3. gervaisjf
    Member
    Posted 4 years ago #

    Great! Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic