Menu order doesn’t work
-
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
-
What tags are you using in your menu?
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.
What tags are being used in your theme’s template files to generate your page menu?
Sorry esmi, i have no idea, where would i look?
Would this be it?
<?php wp_page_menu(); //page menu?>Yes!
If you want your page listing to reflect your Admin page order, try replacing
wp_page_menu()withwp_list_pages('title_li=&sort_column=menu_order'). If you want your pages listed alphabetically by title, usewp_list_pages('title_li=&sort_column=post_title').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?
Try
<div class="menu">wp_list_pages('title_li=&sort_column=post_title')</div>no, that doesnt work at all, sorry.
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…
The topic ‘Menu order doesn’t work’ is closed to new replies.