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

do_action(‘asp_after_search’, $search_phrase, $results_assoc_array);

Home Forums Product Support Forums Ajax Search Pro for WordPress Support do_action(‘asp_after_search’, $search_phrase, $results_assoc_array);

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #55935
    Steve StruttSteve Strutt
    Participant

    Hi Ernest, I am using do_action(‘asp_after_search’, $search_phrase, $results_assoc_array); to retrieve the list of search results to save to a cookie to allow a user to navigate between the CPT item pages generated by the search.

    Surprisingly $results_assoc_array is only returning the first page of results. It is not returning the full list of results as implied by the defintion. My page size is set to 20 and I only get the first 20 out of the 499 results. If I navigate to the next page of results, the value is updated with the next 20 shown on that page.

    How can I retrieve the full list of results after a search?

    #55939
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    For that purpose I recommend using the asp_results hook instead. That should contain all the results when a search override is triggered for the results page.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.