Navigation Order
-
I am using the newest version of wordpress and I downloaded it yesterday.
How can I order the pages the way I want ?
Currentley the order is* The Site
* About Liz
* Notebook
o Poetry
o Reviews
o Other
o Storieshow can i change that to anyway I want ?
I edited the sidebar.php to have
<?php wp_page_menu(‘sort_column=menu_order’); ?>but it still is not in the order I want. Other should be after stories. Any ideas ?
-
The default parameter for sorting
wp_page_menuis Page Order, see this codex article: http://codex.wordpress.org/Template_Tags/wp_page_menuIf you set the page order of each of your pages you can control the order they are displayed.
As a suggestion, set your page orders to:
(page -> order)
* The Site -> 100
* About Liz -> 200
* Notebook -> 300
o Poetry -> 310
o Reviews -> 320
o Other -> 340
o Stories -> 330These values can be set using the “Quick Edit” link under each title on the “Edit Pages” window.
so i put this code in
<?php wp_page_menu( $args ); ?>
instead of this
<?php wp_page_menu(‘sort_column=menu_order’); ?>and it still is not working
The default code for wp_page_menu() would be simply:
<?php wp_page_menu(); ?>… you would not normally need the ‘$args’ unless your theme is using it.
Did you set the page orders to what I suggested, or something similar?
Otherwise this may be theme specific or even plugin related to sort out this issue. A link to your blog may be helpful … you might also find my plugin BNS Support to be useful for creating a listing of your blog and active plugins.
Hi
On much the same topic, could I ask:
I’m trying to have a drop down menu that shows it’s entries in reverse order of posting. i.e. the reverse of ‘post_date’ parameter in the ‘wp page menu’ Tag.
Would the above be the way to go (setting page order manually), or is it possible to automate this by some PHP that reverses the order ‘post_date’ displays?
Also, that it only effects one drop down menu, not all the drop down menus. For example, when I made the list alphabetic (through the ‘post_title’ parameter) all the drop downs became alphabetic. How do I make it so for just one of them?
Is it possible, or should I be considering a different approach?
Many thanks
The topic ‘Navigation Order’ is closed to new replies.