I needed to find a mobile menu solution for Opus Primus, a WordPress theme … and within an hour I had one. First thing, I searched for a “mobile menu script” and then I had to choose one that suited my needs. I decided on SlickNav. It was relatively straight forward to implement SlickNav for … ∞
Expand the wp_nav_menu() function by adding menu items to the output with the add_filter() function.
This article will show how to implement the wp_nav_menu() function using the wp_list_pages() function as a fallback.
In this third installment in the upgrade to wp_nav_menu() series of posts, I will be dealing with moving from wp_list_categories() to wp_nav_menu(). Let’s start with the same basic outline and list the default options for each function. We will start with wp_nav_menu() 1 first: We follow with wp_list_categories() 2, 3 which is often wrapped in … ∞
A few options to address and with possibly a minor edit to the theme, you can upgrade wp_list_pages() easily to wp_nav_menu() in your theme.
Upgrading from wp_page_menu() to wp_nav_menu() may be as easy as a simple find and replace operation.
A list of WordPress version 3.0 Navigation Menu default widget, and wp_nav_menu() function, generated CSS style elements.