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

no results are coming back on a basic search

Home Forums Product Support Forums Ajax Search Pro for WordPress Support no results are coming back on a basic search

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12502
    petermacpetermac
    Participant

    I have tried a few times to create a basic search tool and nothing is being returned. I tried to search for “Event” (a post title) and “Lorem” (text in the post) and nothing comes back. I created a basic search called “test search” which has all the defaults (searching in both posts and pages) and still nothing comes back either in the preview on the admin or on the front end. I even deleted the plugin and re-installed it …

    #12512
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thanks for the details, I was able to find the cause.

    There was a filter active in the functions.php file in your theme folder, but the actual function was disabled. Line 17 was active:

    [php]add_filter(‘asp_results’, ‘asp_get_tax_term_children_results’, 10, 2);[/php]

    However the asp_get_tax_term_children_results function did not exist, as it was commented. The filter still got executed by WordPress, returning NULL for the non-existend function, therefore emptying the results array.
    I’ve disabled that line, now it will return results:

    [php]//add_filter(‘asp_results’, ‘asp_get_tax_term_children_results’, 10, 2);[/php]

    It should return results as normal now.

    #12513
    petermacpetermac
    Participant

    Thanks so much … I guess you can close this item.

    #12514
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘no results are coming back on a basic search’ is closed to new replies.