I’m trying to use Widget Logic (wordpress plugin) to display a widget when viewing a post that is posted to a certain category.
I’ve used:
is_category('category_name')
To display it on the categories archive, but when viewing an individual post, it is no longer displayed.
Is there a wordpress condition tag that does what I want?
An easy solution would be to create a special “sidebar” http://codex.wordpress.org/Function_Reference/dynamic_sidebar and wrap it in is_category().
Edit:
Haven’t used Widget Logic but by looking at examples this should work
(is_single() && in_category('baked-goods')) || is_category( 'baked-goods' )