I want to use the wp function <?php wp_list_pages('sort_column=menu_order'); ?> to display the navigation in a different order. The ultimate goal is to have a "Home" link and a "Blog" link "Home" will just be a page that is created in wordpress. Right now, the navigation displays in alphabetical order. Where can I change this? Thanks.
WP Framework Forums » Troubleshooting
Changing page order for navigation
(8 posts)-
Posted 1 month ago #
-
If you want to past arguments to framework_menu() which is the function called from framework_hook_menu() add this to your theme-functions.php:
function custom_menu( $args ) {
$args = '&sort_column=menu_order';
return $args;
}
add_filter( 'framework_menu_args', 'custom_menu' );The bold area is where you can pass wp_page_menu() arguments.
Let me know if this helps.
Posted 1 month ago # -
First of all I have to say it is a great template! Thanks!
I had the exact issue as 'anonymous'. I have just tried making the change you suggested, but to the theme.php page.
I am trying to reorder the pages using the 'ShiftThis' plugin, where I have uploaded the st-orderpages.php page in the 'wp-content\plugins' directory.
I added your code as explain (I have cut and pasted, so I may have misunderstood).
Is there anything else I need to do to get it to work?
Many thanks,
PhilPosted 4 weeks ago # -
hm.. what version of WP Framework are you using?
Posted 3 weeks ago # -
I am using WordPress 2.7.1
Posted 3 weeks ago # -
Great. and what version of WP Framework not WordPress did you download?
Posted 3 weeks ago # -
Sorry Ptah, I used:
Version: 0.2.2
Release: 02/17/09Posted 3 weeks ago # -
It is the core version
Posted 3 weeks ago #
Reply
You must log in to post.