• Resolved Walleye

    (@walleye)


    Several days ago I asked for help to get out of the alphabetic default to the page list on the sidebar. I wanted to be able to manually move the page order. The code below was suggested. What it did was to place a duplicate list of the page order on the sidebar. I replaced the original code but, it did not put the web page back to its original state. Some thing else must have changed when I edited sidebar.php but, where? Any help would be greatly appreciated.

    Try editing sidebar.php in your thenme and changing
    <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> to <?php wp_list_pages('title_li=<h2>Pages</h2>&sort_column=menu_order' ); ?>

    You can then use the Page Order box in Edit Page to change their order in the menu.

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Help with wp_list_pages’ is closed to new replies.