Multiple functions in one widget?
-
I see that I can use multiple functions set with && or || between each of the commands.
My settings are:
is_page( array(‘hjem’, 12, 183) && in_category(15) )But the widget wont show up at all with this settings. Where did I go wrong?
It is working perfectly when I use one function
like this:
is_page( array(‘hjem’, 12, 183)or just: in_category(15) all alone
ALSO: I need to be able to set a function in Widget Logic text widget, where it switches the widgets when I click a flag I have set with link:
https://www.example.com/?lang=en (going from norwegian menu to english menu)I have two sets of widgets fpr each language, but when I click the flag with /?lang=en, it still show the home page, and the menu is english (with english pages in it) but the widgets remain norwegian until I enter one of the english pages (I have set all the english pages in widgets logic-widgets to show only sectain english written widgets. I hope my explanation is clear enough for you to undertand my settings (?)
- The topic ‘Multiple functions in one widget?’ is closed to new replies.