Widget Logic Help Needed
I'm trying to get a widget to appear on a category archive page and each post under the category using Widget Logic, but it's not working.
These are the codes I've tried in the Widget Logic field so far:
(is_category('test') || (is_single() && in_category('test'))
(is_category('test') || is_single() && in_category('test')
both with and without the ' '
is_category('5') || (is_single() && in_category('5'))
is_category('5') || is_single() && in_category('5')
both with and without the ' '
Is there additional coding I need to add to the function.php file? I've been searching all evening but no success. Any help will be greatly appreciated.
Thanks in advance!
-
Istvan Horvath -
Thanks
Signature{{ DiscussionBoard.errors[3871059].message }} -
-
alanaj -
Thanks
{{ DiscussionBoard.errors[3871797].message }} -