[plugin: widget-logic]php code/conditionals help
-
I’m using widget-logic plugin and I need some help with conditional statements: I am trying to make a widget display only on 3 specific pages….and I am not sure how to do this. I’ve tried this:
if (is_home()) {} elseif (is_page(‘3′)) {} elseif (is_page(’49’)) {}
I’ve also tried this:
is_page(‘3”49’)
and this:
is_page(‘3′) or is_page(’49’) or is_home()
and this:
is_page(‘3′) || is_page(’49’) || is_home()
I’m pretty new to php…I’m learning through tweaking the given code within wordpress docs.
Thanks for any help anyone gives.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘[plugin: widget-logic]php code/conditionals help’ is closed to new replies.