Destroys the previous query and sets up a new query.

25 related functions found for: wp_reset_query

Top ↑

Related terms found for this post

wp-parser-related-wordsqueri, query, query-php, reset, wp-includes, wp-reset
wp-parser-packageQuery, WordPress

Top ↑

Terms Used Terms Used

Terms used in the related posts query

  • queri
  • query
  • Query
  • query-php
  • reset
  • wp-includes
  • wp-includes/query.php
  • wp-reset

Top ↑

Description Description

This should be used after query_posts() and before another query_posts(). This will remove obscure bugs that occur when the previous WP_Query object is not destroyed properly before another is set up.

Top ↑

Source Source

File: wp-includes/query.php


Top ↑

Changelog Changelog

Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.