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 1 year, 9 months ago.
- AuthorPosts
- June 18, 2021 at 10:54 am #33711
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
June 18, 2021 at 12:46 pm #33712Hi 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 :)
June 18, 2021 at 1:31 pm #33713Okay, then I’ll try to count them with JS, thanks for the quick and honest reply.
Sincerely,
Malte Schwarz
June 18, 2021 at 1:47 pm #33714You 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 :)
- AuthorPosts
You must be logged in to reply to this topic.