How to reset/remove added filters ‘posts_join’ and ‘posts_orderby’ after the loop is completed?
There is a couple of ways to achieve this, use a custom query for your widget using get_posts function where the query attribute suppress_filters is set to false (the default). This would ensure your filters are not fired for this query. add better validation to your filter to figure what is the query on which … Read more