Is it necessary to use wp_reset_query() in a WP_Query call?

Posted by Prem Tiwari | Updated on

You use new WP_Query($args) you will be assigning the return value from values to a local variable so, unless you are doing something so complex that you’d already know the answer to this question for then no, you don’t need to call wp_reset_query():


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers