[wp-hackers] Sidebar/Widget conditionnal tag?

Olivier autremonde75 at gmail.com
Tue Jan 4 21:19:18 UTC 2011


No basically, the is_in_loop is set after the posts_where hook,
weither you are in the main content loop or a widget one.

@Demetris : yes the get_sidebar should do the trick. I think it would
be valuable to have some kind of flag set like is_sidebar or
is_widget, would definitely help in this situation.

Thanks all for your help!

More information about the wp-hackers mailing list