1

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

UPdate:

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.

3 Answers 3

2

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

is_page(array(42,'about-me','Contact'));

You have to use the array keyword

2

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.

3
  • 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, 2011 at 11:48
  • view here i posted in wp forum too.
    – Ramkumar M
    Jul 19, 2011 at 5:57
  • See the answer of Lea.
    – keatch
    Jul 19, 2011 at 7:24
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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