[Plugin: Widget Logic] How to add category + pages to WidgetLogic (2 posts)

  1. samanthaclaire
    Posted 2 years ago #

    So far I have only been using pages with Widget Logic, but now that I have a category I want my sidebar to show up on, I was hoping I could put that on there too.
    This is what I have been using
    is_page( array('page-name') )

    How do I also have a category combined with it? Thanks

  2. cveronese
    Posted 2 years ago #

    As per http://codex.wordpress.org/Conditional_Tags

    You use the following

    is_page( array('page1','page2') )|is_category(array('cat1','cat2'))

Topic Closed

This topic has been closed to new replies.

About this Topic