The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Custom query inside my loop (3 posts)

  1. nicosFR
    Posted 6 years ago #

    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;
    // 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 ?

  2. MichaelH
    Posted 6 years ago #

    Place your theme's complete index.php in a pastebin such as http://wordpress.pastebin.ca/ and report the link back here.

    Maybe someone then can better help you.


  3. Shane G
    Posted 6 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.