Mike, 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!