[Resolved] Order by page__in array sequence?
I am feeding a list of page IDs into a custom query, and would like to have the pages listed in the same order as they appear in the array. I am aware I could probably do a foreach on the array and within that loop, run get_page, but I’m wondering if it’s possible to call a loop using page__in and order as per the array of IDs? This would be the ideal situation. If not I’ll just go with the foreach / get_page combo.
Thanks in advance for any advice,
- The topic ‘[Resolved] Order by page__in array sequence?’ is closed to new replies.