I would like to show a plugin in a specific page's sidebar only.

For Example: I have the pages like ..

  • home
  • about us
    • sub page 1
    • sub page 2
    • sub page 3
    • sub page 4


i want to show, plugin 1 in sub page 1 and sub page 4 only and not to all other pages.i tried is_page('sub page 1','sub page 4') but not working :(.please help me.


The way to use is_page with multiple pages is as follows:


You have to use the array keyword

| improve this answer | |

You may try Widget Logic plugin. It let you define via a simple expression like is_page or is_single, if the widget has to be shown.

| improve this answer | |
  • here i can't activate "plugin 1" for "sub page 1" && "sub page 3" only.how to use?i tried ->is_page('sub page 1')&&is_page('sub page 2').but it won't show both pages.please help me.. – Ramkumar M Jul 18 '11 at 11:48
  • view here i posted in wp forum too. – Ramkumar M Jul 19 '11 at 5:57
  • See the answer of Lea. – keatch Jul 19 '11 at 7:24

Conditional Widgets and Widget Logic plugin work at the Widget level. If you are using the Genesis Framework, the Genesis Simple Sidebar plugin let's you create additional sidebars, and designate which pages they appear on.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.