Support » Fixing WordPress » Order by page__in array sequence?

  • Resolved SpankMarvin


    Hi there

    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,


Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Order by page__in array sequence?’ is closed to new replies.