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.
Walleye
Member
Posted 2 years ago #
Sorry was in too much of a hurry
http://www.myroosevelt.org/
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.
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.
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.
Try looking in Admin/Appearance/Widgets.
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?
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?