Forums Forums Search & Filter Pro Searchform removed after submit

Viewing 5 posts - 1 through 5 (of 5 total)
  • Anonymous
    #154171

    Hello,
    I’m displaying the searchform as a shortcode and results as WP_Query in the same template file. After submitting the searchform I get the correct results, however the searchform is removed from DOM. I want the searchform to be visible all the times.

    Am I missing something or is this the intended behavior?

    Trevor
    #154172

    Are you submitting using Ajax? If so, maybe the search form is inside the Ajax Container. Or is the page URL changing (from one page to another)?

    Are you able to send me a live link/URL to your search page so I can take a look?

    Anonymous
    #154174

    Thanks for the quick reply!
    Yes im submitting using Ajax. The searchform is not inside the Ajax container and the URL is not changing, except the query parameters being added.

    Im developing locally, so right now I can’t send you a link. I will upload it to a Server and get back to you.

    Trevor
    #154178
    This reply has been marked as private.
    Anonymous
    #154182

    Problem solved! I made a stupid mistake. I was using the id for the ajax container twice, so the searchform actually was inside the ajax container.
    Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)