• Resolved Bruno Cloutier

    (@bruno-cloutier)


    I had no idea how to name this post, I’ll try to explain my problem as best as possible.

    I’m on a single post’s page. I want to show the following sequence of information.

    [ Title ]
    [ Content ]
    [ Related posts ]
    [ Next & Previous links ]
    [ Comments ]

    The problem I have is I am running a new wp_query to retrieve related posts based on certain criterias. After running a new wp_query and while(have_posts())in [Related posts], the last retrieved post will be used for the Next & Previous links and the Comments.

    I have tried adding the_post() in between but it does not work. How does one goes around such a scenario?

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘the_post() after new wp_query()’ is closed to new replies.