This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Search form returning error and incorrect content

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Search form returning error and incorrect content Reply To: Search form returning error and incorrect content

#41492
Ernest MarcinkoErnest Marcinko
Keymaster

You are very welcome!

I think it would only require debugging where the error is coming from, what exactly is the culprit and then placing that piece of code into a conditional statement to check if the current object is indeed a project post type.
You could actually do it with a users query, maybe by checking if the originating search query is coming from a specific search ID, something like:

// Let's say if the search ID == 1, then it is the members search
if ( isset($_GET['p_asid']) && $_GET['p_asid'] == 1 ) {
    // Make a users query
} else {
   // Do the default query
}

It is not this simple for sure, as pagination and everything else needs to be considered, which is not a simple task to put together for sure.