WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Cant Reverse Order (3 posts)

  1. brad8985
    Member
    Posted 4 years ago #

    All I want to do is reverse the order that my pages are listed in my footer nav but its being difficult...

    <?php wp_list_pages("title_li=&depth=1&sort_column=menu_order&order=ASC&exclude="); ?>

    Changing ASC to DESC makes no difference. Any ideas why?

  2. MichaelH
    Member
    Posted 4 years ago #

    Use sort_order with the template tag, wp_list_pages():

    <?php wp_list_pages("title_li=&depth=1&sort_column=menu_order&sort_order=DESC&exclude="); ?>
  3. brad8985
    Member
    Posted 4 years ago #

    Done, Cheers ;)

Topic Closed

This topic has been closed to new replies.

About this Topic