WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Excluding widgets on a certain category, page, or post (3 posts)

  1. bluebird2
    Member
    Posted 4 years ago #

    I know how to show a widget on a certain category, page, or post using Widget Logic, but how can I exclude it from a certain category, page, or post?

    Such a function exists in another WordPress widget, Widget Context , but I need to know if it is possible to do that by Widget logic using the WP's Conditional Tags, .

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 4 years ago #

    Try using the logical NOT with things like

    !is_home() -- which excludes the widget from the home page
    !is_authot() -- excludes from author pages

    etc

    http://wordpress.org/extend/plugins/widget-logic/other_notes/

  3. bluebird2
    Member
    Posted 4 years ago #

    Thanks. That worked.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic