Hello. I look for a way to use conditional tags in Widgets, without using "Widget Logic".
So, in 'function form($instance)', I use a field '$conditional'. In Widget Panel, I use a value example like 'if (is_single())'.
Before 'echo $before_widget', I write 'if ($conditional)': my script verifies the condition ('yes'/'no'), but does not apply it! The value of '$conditional' passes correctly, because I can display it in Widget to test.
Any help would be greatly appreciate. Thank you.