Viewing 4 replies - 1 through 4 (of 4 total)
  • Not sure about your problem from the given description but to make a widget be shown only on certain pages use

    is_page()

    For example: Add in your widget logic box
    is_page( array('yourPageTitle','anotherPageTitle','yourThirdPageSlug') )

    Thread Starter Justine13

    (@justine13)

    Hello

    When I do this restriction is_page (array (‘yourPageTitle’, ‘anotherPageTitle’, ‘yourThirdPageSlug’))

    The widget disappears on all page

    i don’t know what i must do…

    Thread Starter Justine13

    (@justine13)

    I used the is_single() conditional tag on the widgets in combination with the id of the attraction and it works ! Thank you for your help

    Glad you got it working.

    is_page() works the same way. You weren’t supposed to copy the strings like that but use a page title, slug or id instead of my examples.

    is_page(32) should show the widget on the page with id 32.
    is_page(‘Attractions’) should show the widgte on a page with the title Attractions.

    And is_page( array( 32, ‘Attractions’) ) should show it on both of them.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘widget doesn't appear in attraction sidebar’ is closed to new replies.