Forums
(@streamcoding)
11 years ago
There is a good way and it’s pretty simple. Just add this command right before calling WP_Query():
remove_all_filters(‘pre_get_posts’);