I just found this handy little function that ads the ability to reverse the menu output order. it might come in handy:
/**
* Enables a 'reverse' option for wp_nav_menu to reverse the order of menu
* items. Usage:
*
* wp_nav_menu(array('reverse' => TRUE, ...));
*/
function my_reverse_nav_menu($menu, $args) {
if (isset($args->reverse) && $args->reverse) {
return array_reverse($menu);
}
return $menu;
}
add_filter('wp_nav_menu_objects', 'my_reverse_nav_menu', 10, 2);
All you need to do is ad 'reverse' => true
as one of the wp_nav_menu parameters. 🙂
this is the source: https://gist.github.com/1291914
Related Posts:
- Menu items description? Custom Walker for wp_nav_menu()
- wp_nav_menu(), how to change class?
- How can I display a menu on certain pages only?
- Add Caret to Menu Items with Sub-Menus in WordPress Theme
- How to limit wordpress menu depth in admin panel
- How to determine if custom menu is active?
- Any walker causes blank menu?
- Problem with registering menus – What to do when other solutions aren’t working?
- Select menu on browser resize
- How to add (css) classes to only one wp_nav_menu()?
- Get last modified date for menu link
- Displaying wp menus by name without using theme locations
- How to add nofollow to wp_nav_menu
- How to highlight the current page in the nav menu?
- Setting a Default ‘Theme Location’ When Creating a Menu
- WordPress nav_menu_css_class theme filter is not being called
- How do I highlight the menu for a child page?
- Custom Nav Walker Displaying Values in Sub Menu
- how to set more than one menus to the same theme location
- Custom Nav Walker to show siblings and children of current branch?
- CSS won’t style output of wp_nav_menu() correctly
- Create self-populating menu and add extra divs to the menu layout
- how to wrap tag in tag html to wordpress menu conversion
- Second menu not showing
- 2 differen’t menus and it’s using same items in both
- Is there an action for save_menu and/or update_menu?
- Set default screen option for appearance -> menus
- wp_nav_menu add something before closing container and after last list item
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- WordPress navbar with logo in middle [closed]
- wp_post->post_parent object returning 0
- WordPress empty Nav Menu error
- How to make theme elements customizable in wordpress?
- Single-level menu option? Another way?
- Primary navigation menu & footer not showing in category / tag page
- Problem with empty class attributes when running a filter on nav_menu_css_class
- Custom Nav Walker Trouble
- How to set the currently active page in the menu including parents
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Where am I doing wrong in my theme menu?
- Custom Navigation build using wp_nav_menu and walker
- Override customizer values on a per-menu base
- Recommended method for updating/adding menus when adding new theme
- Admin: sub menu doesnt display under apperance when activate my themes
- Why wp_nav_menu() doesnt show the proper meny when invoked two consecutive times?
- How to develop a menu like wwe.com?
- Why are some of my menu items not displaying on my menu?
- How should I use starter content utility to show some default menus?
- How to create and populate with few links a menu in child theme functions.php?
- Second menu has the first menu ID
- Thesis -style Navigation
- Theme development – Automatically menu creation
- How can i make multilevel menu in wordpress theme with bootstrap
- how do i develop a global nav and local nav to be wordpress dynamic?
- Theme development: How to add CSS classes to menu items?
- Adding content inside the anchor tags within WordPress main nav
- Why is my container argument not working for wp_nav_menu() [closed]
- How to Emulate Default Navigation Menu Behaviour in a Custom Theme?
- How to conditionally add a wp_filter
- Remove/Hide a Widget on a Custom Template
- Does wordpress add their own classes into nav menus?
- Custom menu: Link names
- Custom nav menu not showing
- .current_page_ancestor broken in Twenty Eleven
- finding menu hierachy > wp_get_nav_menu_items
- if (has_custom_menu())?
- Why do sticky posts show in this menu?
- Making a horizontal flyout menu from WordPress category listing
- WordPress custom menu can’t show 3. level submenu
- how to create/register menu items that can be added to menus later
- Why nav_menu_css_class doesn’t work with apply_filters?
- Programatically Created Menu not Editable in Dashboard
- Building a custom menu or use a plugin?
- Use instead of for wp_nav_menu()
- How can I show a custom WordPress menu anywhere I want on my website?
- Show all menu levels except top level. How to exclude top level of a menu?
- Cold Fusion to WordPress
- Menu is in Reversed order
- WordPress Menu item > Sub menu Class update
- Menu names not getting translated
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- How to know and change the machine name of a menu?
- WordPress menu walker – Get parent item text inside end_lvl function
- How to achieve this navigation style in wordpress navigation
- wp_nav_menu custom walker class
- How to add custom nav_menu_css_class to certain menu only?
- How to add drop symbol to parent nav items which have child
- After theme change the menus have to be manually linked to the corresponding theme location
- How to add custom field option with menu?
- What’s the policy for building a theme that doesn’t support widgets/menus?
- Problem with multiple menus in theme
- Main Menu Theme Different Output Print
- Menu item not created on theme activation
- How do I move menu to the bottom in Custom Community theme?
- Header links also appearing in the footer
- Creating Multiple Menus in the Thesis Theme?
- How do I middle-align my header menu items in WordPress [closed]
- Global Navigation menu in diiferrent wordpress setups
- Add wrapper for a specific sub-menu
- Dynamic nav menu with icons [closed]