• Resolved g_sula

    (@g_sula)


    hi,
    I cannot arrange page menus. I tried in Dashboard > Pages > order. The pages also are not arranged alphabetically as default. They are in this order: Bio, Works, Videos, Contact

Viewing 7 replies - 1 through 7 (of 7 total)
  • MichaelH

    (@michaelh)

    The template tag, wp_list_pages(), is typically used by theme designers to display Pages in a nav bar. With the help of the Template Hierarchy article, determine what Template is displaying your Pages (probably header.php), then look for wp_list_pages and see if you can add/delete the sort_column= argument.

    Related plugin:
    https://www.ads-software.com/extend/plugins/my-page-order/

    Thread Starter g_sula

    (@g_sula)

    In header.php there is this code:
    <?php wp_list_pages(‘number=6&sort_column=post_date&depth=1&title_li=’); ?>
    what can I do?

    Thread Starter g_sula

    (@g_sula)

    I did these steps but nothing has been changed. And also there is no “wp_list_pages(‘sort_column=menu_order&title_li=’)” in sidebar template as it’s told below in point 4.

    1. Install plugin and activate it on the Plugins page
    2. Go to the “My Page Order” tab under Pages and specify your desired order for pages
    3. If you are using widgets then just make sure the “Page” widget is set to order by “Page order”. The plugin also installs it’s own widget with more options.
    4. If you aren’t using widgets, modify your sidebar template to use correct sort order: wp_list_pages(‘sort_column=menu_order&title_li=’);

    Thread Starter g_sula

    (@g_sula)

    sorry, I did it wrong. now it works perfectly ??

    carolionking

    (@carolionking)

    I installed the My Page Order plug in. I ordered the pages how I wanted them to appear using the plug-in. I think that I properly told the Page widget to set by “page order”. I don’t know what I am supposed to change for the header.php.

    This is the code related to the navigation:

    <ul id=”topnav”>

    <li <?php if(is_home()){echo ‘class=”current_page_item”‘;}?>>” title=”<?php _e(‘Home’); ?>”><?php _e(‘Home’); ?>

    <?php if($conrel_header_menu) { wp_list_pages(‘title_li=&depth=1&include=’.$conrel_header_menu); } else { wp_list_pages(‘title_li=&depth=1&number=5’); } ?>

    Can you help me understand how the “sort_column” relates to this code. I apologize if this is a novice question, it’s my first time working with WordPress. I am liking it so far ??

    carolionking

    (@carolionking)

    I left out an important point. I have seven pages I want to appear in the navigation. Only three are showing currently. I have tried different configurations, but the most I can get to show up is five.

    carolionking

    (@carolionking)

    I learned that it was specific to my theme. I was able to access theme options from the dashboard and entire a comma separated list of page ids.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘page arrangement’ is closed to new replies.