Have functions work outside the loop with 404 override
The timing of relevant parts of the process is following: Query executes and fetches posts (or in this case no posts) template_redirect fires Template file is determined from query variables and loaded When you change query variables in template_redirect you change template choice (which you observe), but you still have no posts in query. The … Read more