dtarver
Member
Posted 2 years ago #
Hello
I have a site that displays pages.
For example:
Week #1 is a page
Week #2 is a page
Week #3 is a page
Week #4 is a page
...
Week #10 is a page
I want the pages to appear 1 thru 24 in order but righr now #10 appear after #1 and number 20 etc appears next to #2.
How can I fix this?
Thank you,
Dora
Try editing the relevant template file in your theme and adding &sort_column=menu_order to wp_list_pages.
http://codex.wordpress.org/Template_Tags/wp_list_pages
dtarver
Member
Posted 2 years ago #
Hi
I got an error. I added &sort_column=menu_order to the tag below. What is the proper syntax please?
<?php wp_list_pages('&sort_column=menu_order' . 'title_li=<div class="sb-title">' . __('','default') . '</div>' ); ?>
The original tag was this:
<?php if ( is_front_page() || is_home() || is_page() ) { ?>
<?php wp_list_pages('title_li=<div class="sb-title">' . __('','default') . '</div>' ); ?>
<?php } ?>
Thank you
Dora