• Resolved dtarver

    (@dtarver)


    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try editing the relevant template file in your theme and adding &sort_column=menu_order to wp_list_pages.

    https://codex.www.ads-software.com/Template_Tags/wp_list_pages

    Thread Starter dtarver

    (@dtarver)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to get pages in numeric order?…’ is closed to new replies.