• Resolved Adam W. Warner

    (@awarner20)


    Hi folks,

    Seems like this should be simple, but I seem to be missing something. I am using the wp_dropdown_pages template tag described here: https://codex.www.ads-software.com/Template_Tags/wp_dropdown_pages

    My code looks like this:
    <?php wp_dropdown_pages( 'include=1409,1411,1413,1415,1417,1419,1421,1423&orderby=page_id' ); ?>

    I am trying to get the pages listed in order of their IDs like they are listed above, but they are ordering by “name” “ASC” (alphabetical). I’ve tried changing orderby=page_id to other parameters, but can’t seem to get it ordered by page ID.

    Can someone assist me in my infinite foolishness?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_dropdown_pages (How to order by page ID?)’ is closed to new replies.