• Resolved garybeck

    (@garybeck)


    hello,
    i’m pretty new here, so my apologies…

    i am trying to use WordPress not really for a blog, but to help someone set up a website so that they can change it on the fly by themselves, without bugging (or paying) me.

    I searched through the Themes and found the most basic one I could find (555 1.0 by Marc Crosthwaite https://themes.wordpress.net/download.php?theme=2386 ), changed the header imamge and background, and stripped out all the blogging stuff that was mainly in the footer.

    Everything seems to be working pretty well except for one thing. The site has about 5 simple pages, which I set up as “pages” in WordPress, which makes them all accessible in the “menu” bar provided by the template.

    The problem is that it is sorting (and displaying) these pages in the menu by alphbetical order. I can go into the Edit of each page and there is a field for “page order” and I can type in a number but it has no effect on the order displayed in the menu.

    Anyone have an idea of how I can control the order? You can look at the site here:

    https://greendiesels.net/wordpress

    if you look at the menu bar you’ll see the pages listed there in alphabetical order.

    any help is appreciated.

    thanks
    gary in vermont

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try the sort_column=menu_order for the template tag, wp_list_pages().

    Thread Starter garybeck

    (@garybeck)

    thanks very much that seems to be the ticket!

    Hi Michael

    I had the same problem and I did what you said. The order in the menu bar changed according to page order but in reverse order! So, I had to go ahead and change the number of the page that I wanted to have at the beginning (after home) from 0 to 4 etc,. The page I wanted to have at the end (contact) needed to have the page order 0.

    Well, at least I found a solution but it is not very satisfying. I would like to know what the problem could be.

    The problem now is that the pages in the Sidepar Pages Widgets are in revers order. So, the widget is actually doing the right thing (number o ist first, etc.).

    I had a Pager-Order plugin, but that had the same effect. When I put the pages in the correct order with drag and drop, they were correct in the Widget/Sidebar but in reverse order in the menu.

    https://edurizon.com

    Here is what I have as code now in header.php:
    <?php wp_list_pages(‘depth=1&title_li=&sort_column=menu_order’); ?>

    I also tried removing: depth=1&title_li=& and had this code then:
    <?php wp_list_pages(‘depth=1&title_li=&sort_column=menu_order’); ?>
    But that had the effect the sub-pages also showed in the menu.

    Any ideas what could have gone wrong?
    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘controlling order of pages??’ is closed to new replies.