WordPress.org

Ready to get started?Download WordPress

Forums

Sidebar pages listed backwards (6 posts)

  1. lyncca
    Member
    Posted 6 years ago #

    Hi all,

    I am finally getting into the backend of WordPress and trying to make some modifications.

    One thing I noticed is that on the top button bar, my pages are ordered in the correct order (used a page order plugin), but on the sidebar, they are listed in the exact opposite order.

    How do I change this to be in the correct order? I would just remove it, except I have sub-pages that need to be listed there that I will not have accessible from the top buttons.

    My site is here: http://www.lyncca.com , so you can see what I am talking about. Any ideas?

  2. boober
    Member
    Posted 6 years ago #

    they are listed in the order you created them, most recent at the top. try editing each page and giving them number in the 'page order' box in the right hand column (probably at the bottom)

  3. lyncca
    Member
    Posted 6 years ago #

    No, they are in the correct order on the top, but in the sidebar they are listed in the opposite direction. If I reorder the sidebar, the top will then be backwards...

  4. angelaharms
    Member
    Posted 6 years ago #

    I can find code to change the order in which posts are displayed, but not pages. I'm not sure, but I'm thinking it's hard coded.

    Have you looked at header.php to see? I bet that is where the order would be most easy to change.

    Angela

  5. Cathy Tibbles
    Member
    Posted 6 years ago #

    You use this template tag <?php wp_list_pages();?> and place it in your sidebar.php file. If you are using widgets, then this won't help. I don't know how to configure widgets.
    If you use these arguments:`<?php
    wp_list_pages('sort_column=menu_order&sort_order=asc'); ?>` it will produce the list of pages, with the title, "Pages", in ascending order(i can never get this straight, but isn't that oldest first?).

  6. angelaharms
    Member
    Posted 6 years ago #

    Or, if they need to go the other way, it would be sort_order=desc.

Topic Closed

This topic has been closed to new replies.

About this Topic