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

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33711
    mSchwarz698
    mSchwarz698
    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 Marcinko
    Ernest 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.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #33713
    mSchwarz698
    mSchwarz698
    Participant

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

    Sincerely,

    Malte Schwarz

    #33714
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    You are welcome 🙂

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

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.