How to show the “home” link on wp_nav_menu default fallback function

You just have to paste the following code into your theme functions.php file:

function my_page_menu_args($args) {
	$args['show_home'] = true;
	return $args;
}
add_filter('wp_page_menu_args', 'my_page_menu_args');

Thanks to Reza for this nice piece of code!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

How to show the “home” link on wp_nav_menu default fallback function

Related posts:

  1. How to set HTML editor as the default in WordPress
  2. How to automatically add a search field to your navigation menu
  3. Different number of posts for a WordPress category
  4. WordPress trick: Get category slug using category ID
  5. WordPress tip: Remove WP 3.1 Admin Bar

Leave a Reply