Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the Widget Logic plugin to display a widget only on certain pages.

I use the condition

is_page(10,16,19)

to specify the pages I want the widget to display on.

However, the widget does not display on these pages.

I have double checked the page ID is correct, and I have cleared my browser cache, yet the widget isn't being displayed.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Refer to the is_page() Codex entry. You need to pass multiple Page IDs as an array:

is_page( array( 10,16,19 ) )
share|improve this answer
    
Thank you Chip! –  Steve Feb 5 '13 at 3:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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