How to have a HOME button in WordPress navigation menu and still display recent posts

If you like your front page in WordPress display your recent posts, but still want a Homepage button in the Primary (navigation) menu, here is how.

Go to Appearance->Editor and open up functions.php. Edit the following code from false to true:

/**
*HOME Page Menu Link
*/
function home_page_menu_args( $args ) {
         $args['show_home'] = true;
         return $args;
}
add_filter( 'wp_page_menu_args', 'home_page_menu_args' );

You’re done. Now HOME will be displayed as a page in the menu.

Leave a Comment