[widget logic] is_single(array(…)) not working?
-
Hi everyone,
I installed widget logic successfully to my wordpress. I am able to have a text widget within my sidebar and define specific pages to have the text widget showing by using this code:-
is_single(‘our-service’)
so I will have Text Widget A for Our Service page, and Text Widget B for Our Client’s page.
But now I want to have the same text widget that will show repetitive in 5 – 10 pages. It doesn’t make sense to create 10 duplicate text widgets for doing the same thing.
I tried to the approach below for a single text widget using widget logic, but I couldn’t get it to work (assume I want to have it covered for these 2 pages):-
(is_single( array( ‘about-us’, ‘our-careers’ ) ))
or
is_single( array( ‘about-us’, ‘our-careers’ ))
or
is_single(‘about-us’) && is_single(‘our-careers’)
or
is_single(‘about-us) || is_single(our-careers’)
Any help to get this to work? Thanks in advance.
- The topic ‘[widget logic] is_single(array(…)) not working?’ is closed to new replies.