I tried with this code:
function home_page_menu_args( $args ) {
$args['show_home'] = true;
return $args;
}
add_filter( 'wp_page_menu_args', 'home_page_menu_args' );
but gives me this error: Error 404 - Not Found
I would like that when I click on “Home Page” menu appears the recent posts.
And I would like to place an icon instead of “Home Page” writing.
Thank you!
To add a home link to menus that you create via the menus admin area:
If you programmatically want to add the HOME menu item in the main menu (primary) then you can do with the following code.