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

Retrieve Total Result Count with Live-Filter

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Retrieve Total Result Count with Live-Filter

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33711
    mSchwarz698mSchwarz698
    Participant

    Hello,
    first of all thank you for this amazing Plugin.
    I was looking through the documentation but couldn’t find a way to retrieve the total_result_count. I saw you could use {total_result_count} within the result Infobox, but is there any way to retrieve that information vai a function or so to use when I am using the live search filter in elementor?
    I applied the class to the post-widget and I want to display not only the pagination but also how many results are given.

    Is this possible? Or do you have any idea how to get that functionality with the live-filter?

    Thank you in advance.

    Sincerely,

    Malte Schwarz

    #33712
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Malte,

    I’m afraid this is not possible. This data is passed along only with the regular live search requests, not the elementor query. Even if it was passed, it would be very complicated or near impossible to get it.

    #33713
    mSchwarz698mSchwarz698
    Participant

    Okay, then I’ll try to count them with JS, thanks for the quick and honest reply.

    Sincerely,

    Malte Schwarz

    #33714
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome 🙂

    Good idea, your solution sounds much simpler than trying to retrieve the count from the xhr request.

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