Support » Fixing WordPress » Custom query inside my loop

  • nicosFR

    (@nicosfr)


    Hi !

    I want to make a custom query to fetch posts after my main post content is displayed. After that I just want the page to continue working as it is supposed to.

    Here is the code I use

    $temp = clone $wp_query;
    	query_posts($myargs);
    // here i do stuff, and it works
            $wp_query = clone $temp;

    But it doesn’t seem to go back to my original query as comments for the initial posts etc… are not displayed, actually it still fetches the info from my custom query…

    What am I missing here ?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom query inside my loop’ is closed to new replies.