Tag Archives: wp_query

Modifying the WordPress query in your theme without breaking plugins

In the WordPress codex, it explains how to modify what posts are in the loop by modifying the WordPress Query object. However there is a catch with this, because by using rewind_posts() for example, you are generating a brand new query to the database that doesn’t trigger plugins. Specifically this came up when creating the […]