I'm using a custom loop to display posts using pagination. My query shows 4 posts per page, and there are 4 pages, so 16 posts in total. Is it possible to load in the last page of posts first? So when I load the query, it first shows page 4, then when I click 'show next' it shows page 3, et cetera?
Order
ExplanationThe When to use itIf you're in need of doing a task, that isn't possible by default and would bring you in the situation where you are about dismissing the first query and adding another one, then this filter can be used. What to considerThis filter triggers for a lot of stuff. So always make sure to abort this filter in cases, where the modification is not needed/wanted. I also added a call to |
||||