Using WP loop breaks filtering
-
Hi there,
I’m trying to change the default post order on an archive page but having no luck. I notice a similar question has already been asked here, and the response was to use WP_Query. Just to be clear, I’m not trying to sort posts using the FE sort widget, I’m trying to simply change the default order posts appear when the page is loaded.
When using the standard loop on an archive page (as described in the WP_Query documentation), I notice the filters no longer work which leads me to believe the basic loop overrides the arguments that get added when a user clicks on a filter?
What is the correct way to ensure a custom loop changes the order of posts, but also respect the filter everything arguments?
- The topic ‘Using WP loop breaks filtering’ is closed to new replies.