Title: Stopping the default loop query from executing
Last modified: August 19, 2016

---

# Stopping the default loop query from executing

 *  [mikoder](https://wordpress.org/support/users/mikoder/)
 * (@mikoder)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/stopping-the-default-loop-query-from-executing/)
 * Is there any way to prevent the default loop query from being executed before
   the template is loaded?
 * Modifying query_posts causes a whole new query to be run, which results in 2 
   queries per index page (or where ever its being done). Wouldn’t deferring the
   execution of the loop query until have_posts() be more logical?

The topic ‘Stopping the default loop query from executing’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [mikoder](https://wordpress.org/support/users/mikoder/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/stopping-the-default-loop-query-from-executing/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
