Support » Fixing WordPress » Reverse sort order of wp_page_menu

Viewing 3 replies - 1 through 3 (of 3 total)
  • anyone know if there is a fix for this?

    Even though it is not shown in the Codex, I think you can use this:

    <?php wp_page_menu( array( 'sort_column' => 'post_date', 'sort_order' => 'ASC' ) ); ?>

    The documentation for wp_list_pages, which is called by wp_page_menu, says that ‘ASC’ is the default, so you might also try ‘DESC’. That sounds wrong to me because older dates ought to be smaller but maybe post_date is being recalculated to mean post_age.

    Ahhh, that’ll do it!

    DESC got it to start with the newest.

    Thanks SO much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reverse sort order of wp_page_menu’ is closed to new replies.