• Resolved brody_zen

    (@brody_zen)


    I am using a plugin called widget logic

    i want to tell a widget to only display on certain pages.

    The is the code they provide
    is_page(‘about’)

    it works but i would like to designate multiple pages.

    how do i write that

    thanks

Viewing 1 replies (of 1 total)
  • Chip Bennett

    (@chipbennett)

    Did you ever get an answer for this?

    You need to add multiple is_page() conditionals, one for each page. So, for example, if you want the Widget to display on pages “about”, “foo”, and “bar”, add the following to the Widget Logic field:

    is_page( 'about' ) || is_page( 'foo' ) || is_page( 'bar' )

Viewing 1 replies (of 1 total)
  • The topic ‘widget logic’ is closed to new replies.