• I have four pages set up and call using

      <?php wp_list_pages(‘title_li=’); ?>

    I’ve numbered each page, and in the Manage Pages view the pages show in the desired order. However, on the site the page numbered last shows up as the second. I deleted and created the page again and the same thing happened. I’m not sure how to troubleshoot this. Has anyone encountered a similar problem?

Viewing 2 replies - 1 through 2 (of 2 total)
  • the wp_list_pages() function has a lot of different parameters, one of which determines how it’s organized (the default is alphabetical). I believe the one you are looking for is

    ‘sort_column=menu_order’

    meaning that your theme should have:

    <?php wp_list_pages(‘title_li=&sort_column=menu_order’); ?>

    When in doubt about a specific tag, check the codex/wiki, most tags have a pretty good article that will solve your problems:

    https://codex.www.ads-software.com/wp_list_pages

    p.s. I’m with you about it being strange though. The fact that it lets you type in the page numbers but doesn’t tell you that by default the numbers do nothing is pretty frustrating.

    Thread Starter stricha

    (@stricha)

    Thanks so much, Jeremy. That did it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page Order Bug?’ is closed to new replies.