views:

20

answers:

1

i want to code something in my post template. So, is there any way to check whether a widget that i want to show will be shown in sidebar or not ?

+2  A: 

Have a look at the wordpress function is_active_widget. It might be what you are looking for: http://codex.wordpress.org/Function_Reference/is_active_widget

codescape