Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Creating a results page (not live filtering), sorted › Reply To: Creating a results page (not live filtering), sorted
I looked through the tickets but I couldn’t find either of them, I don’t recall their site names unfortunately. They didn’t share their code with me though, so it wouldn’t help either way.
If I were to solve this I would approach it like this:
– Loop through the main archive query and create an array of the groups based on the defined criteria
– Each group should contain the IDs of the posts/products for every group
– Generate sub-queries for each group
– If using a page builder, then name the queries and hook into them to override the IDs from the generated groups
Then figure out a way to perhaps use pagination, but that has to be also custom coded as the original paniation will not work correctly because of the subqueries and the divided result counts.