Hi @amddtim,
There is not a filter for sorting the actual returned data… Though that might be a helpful filter.
As you likely know, all you can do currently is use the alm_query_args filter.
https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args
Ah, bummer. Yeah that would be super helpful and I’d love to see it in a release soon. I know about and am using the alm_query_args filter in other situations, but like I said, the sorting capability I need is too advanced for the WP_Query.
Yea, makes sense I think.
I just don’t fully understand a use case for sorting posts like this unless you are returning all posts.
Say someone loads 10 posts of 60, sorts them before display… then they load 10 more and sort those… What type of order would the results be in?
Anyways, just curious.
Fair point, but I am returning all the posts I need for a carousel. No ‘scroll’ loading. Eg, I’m getting all the speakers for the year 2018, but I need those speakers ordered by taxonomy terms and then by last name.
Overall, I’m using the ALM plugin to have the initial page load go faster and for the filtering abilities.
-
This reply was modified 8 years, 3 months ago by
amddtim.