• nobby

    (@nobby)


    Hi all

    My menu order is dictated by alphabetical order, changing the order number has no effect, nor does installing a menu order plugin, how the heck do i fix this? not come across this before in countless WP installations.

    thanks

    Nobby

Viewing 15 replies - 1 through 15 (of 15 total)
  • esmi

    (@esmi)

    What tags are you using in your menu?

    Thread Starter nobby

    (@nobby)

    Sorry, i’m not sure i understand what you mean, i have assigned the order to each page numbers 1-6, which normally works just fine, but in this case they are still showing alphabetically.

    esmi

    (@esmi)

    What tags are being used in your theme’s template files to generate your page menu?

    Thread Starter nobby

    (@nobby)

    Sorry esmi, i have no idea, where would i look?

    Thread Starter nobby

    (@nobby)

    Would this be it?

    <?php wp_page_menu(); //page menu?>

    esmi

    (@esmi)

    Yes!

    If you want your page listing to reflect your Admin page order, try replacing wp_page_menu() with wp_list_pages('title_li=&sort_column=menu_order'). If you want your pages listed alphabetically by title, use wp_list_pages('title_li=&sort_column=post_title').

    Thread Starter nobby

    (@nobby)

    Hey esmi, thanks, that code did put the menu in order, unfortunately it trashed the formating of the menu too, but its clearly close. Any ideas how i can fine tune it?

    esmi

    (@esmi)

    Try
    <div class="menu">wp_list_pages('title_li=&sort_column=post_title')</div>

    Thread Starter nobby

    (@nobby)

    no, that doesnt work at all, sorry.

    Thread Starter nobby

    (@nobby)

    All fixed, here is the code:

    <div id="container" class="clearfix">
    <div class='menu'>
    <ul>
    <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
    </ul>
    </div>
    </div>

    were exactly did you put that code? Which file and which lines needs to be modified?

    thnx!

    Hi Kadr, depends on your theme but probably in index.php .

    Hey henk,

    I was able to fix it with a plugin: http://geekyweekly.com/mypageorder

    but thnx for the help!

    how can i order pages by id? i don’t want them sorted alphabetically or by admin dates, etc… I would like this sorted according to the ID #s of my choice…

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Menu order doesn’t work’ is closed to new replies.