How can I get aggregations result on WP_Query
-
Hello Support Team,
Hope you are doing well.
I am facing a problem getting the aggregation result on WP_Query. I checked the aggregation result with the Query monitor tool and It seems the result is perfect but I didn’t find any way to retrieve this result with wp_query object.
https://i.imgur.com/0qHJEK2.png
I also checked your documentation & found a blog where you mentioned a solution to get the aggregation result, but It is not helpful as you provided the result with a separate action hook, not with wp_query object.
Blog URL: https://www.elasticpress.io/blog/2017/09/aggregations-api-for-grouping-data/
Hook Link: https://10up.github.io/ElasticPress/ep_retrieve_aggregations.html
And you marked this hook as a deprecated.
Any suggestions?
Thanks
- The topic ‘How can I get aggregations result on WP_Query’ is closed to new replies.