[wp-hackers] Sidebar/Widget conditionnal tag?
autremonde75 at gmail.com
Tue Jan 4 14:11:42 UTC 2011
I need to filter widget content (for recent posts and recent
comments). The issue I am facing is that the posts_where filter I am
hooking on is applicable to the entire page queries (ie main content +
Please, is there a way to check if the query is performed from the
sidebar or widget?
Something like is_sidebar or is_widget would be nice to perform some
tests in the filter hooks.
More information about the wp-hackers