Forums

[resolved] Search Page with Multiple Loops (3 posts)

  1. freshifreshy
    Member
    Posted 2 years ago #

    When I run a search on my site, the "recent posts" and other new WP_Query loops all display only posts related to my search terms.

    Essentially, the search term seems to override any other queries that I have going on.

    Any thoughts on what might be happening?

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Can only guess might need to add wp_reset_query(); after your query loop.

    If that doesn't work for you, please paste all the code from the theme template file that exhibits the problem into a pastebin such as wordpress.pastebin.ca, and report the link back here. Maybe someone can spot your problem. Thanks.

  3. freshifreshy
    Member
    Posted 2 years ago #

    Can only guess might need to add wp_reset_query(); after your query loop.

    That didn't work, but I realized that I had the Search Unleashed plugin activated. I deactivated it and now the search is working.

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Topic