Support » Fixing WordPress » Page Order in Sidebar

  • Resolved jbn10161


    I have two pages. The page with a title that is alphabetically first has a page order of ‘1,’ and the page with a title that is alphabetically second (“Welcome”) has a page order of ‘0.’ The sidebar shows the Welcome page, which I want first, as the second in the list. I assume this is because of its alpha order, but I’m not sure. Is there any way to make that page the first in the sidebar list?

Viewing 7 replies - 1 through 7 (of 7 total)
  • What tag are you using currently?

    You probably need this?
    <?php wp_list_pages(‘sort_column=menu_order’); ?>

    No tag, just the desktop UI, putting a number in the “page order” field. Where would I put the code you provided? I assume in the sidebar template, but where there?

    There should be a wp_list_pages() tag in your sidebar. Inside the parentheses, please 'sort_column=menu_order'.

    See the wp_list_pages documentation for all the available options.

    Perfecto. Thanks. (And thanks for the cite to the Codex, which clarified how to add the parameter to a preexisting parameter.)

    Specifically, I changed mine to:

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

    Which worked great.

    Thank you! After searching through a dozen or so forum threads, this solution worked best. Until I added the extra:


    into the wp_list_pages php code, I could only have an alphabetical list of results.

    If you are using widgets edit the widget.php file under Plugins/Plugin Editor. Here is what the command line should look like:


Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Page Order in Sidebar’ is closed to new replies.