WordPress.org

Support

Support » Themes and Templates » Sidebar pages listed backwards

Sidebar pages listed backwards

  • 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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)

    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…

    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

    Cathy Tibbles

    @multitalentedmommy

    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?).

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar pages listed backwards’ is closed to new replies.