How to hide page links from theme menu
Most of users use wp_nav_menu to output the menu in a theme, then you could make use of the callback function that is passed in the arguments array. wp_nav_menu( array( ‘fallback_cb’ => ‘wp_page_menu’ ) ); wp_page_menu is the default value for the callback function. Looking further, wp_page_menu has an exclude key in its arguments array. … Read more