Forums

[resolved] Help with wp_list_pages (10 posts)

  1. Walleye
    Member
    Posted 2 years ago #

    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.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Site url?

  3. Walleye
    Member
    Posted 2 years ago #

    Sorry was in too much of a hurry

    http://www.myroosevelt.org/

  4. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try editing sidebar.php and removing one of the instances of <?php wp_list_pages('title_li=<h2>Pages</h2>&sort_column=menu_order' ); ?> first.

  5. Walleye
    Member
    Posted 2 years ago #

    There is only wp_list_page in the sidebar.php file. I could post the whole sidebar.php file if that would help. I have not been able to find any duplicate lines to explain this.

  6. Walleye
    Member
    Posted 2 years ago #

    I removed wp_list_page udated the file, published the page but, the double page list persists. It has to be written some place else I think.

  7. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Try looking in Admin/Appearance/Widgets.

  8. Walleye
    Member
    Posted 2 years ago #

    Thank you--I had to go into pages and check sort by page order, now I need help to remove the second list of pages. Any ideas?

  9. MichaelH
    Volunteer
    Posted 2 years ago #

  10. Walleye
    Member
    Posted 2 years ago #

    I found the problem there were two Widget ,Pages dragged into sidebar. I am really new at this and have not programed in php ever (FORTRAN and BASIC) does that date me? In any event thanks to all who have made suggestions. I greatly appreciate the help. Is there a good book about WordPress?

Topic Closed

This topic has been closed to new replies.

About this Topic