Expand the wp_nav_menu() function by adding menu items to the output with the add_filter() function.
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 … ∞
Examples of adding a home page link to a WordPress theme with code that can be easily copied and pasted.