Alternative to query_posts for main loop? [duplicate]
When I added the drawbacks to the Codex, I was mainly thinking of using the ‘request’ filter as an alternative to query_posts(). That filter is only run for the main query, so that solves the problem with ‘pre_get_posts’, which fires for every query. The downside is that you don’t have access to query flags like … Read more