How to add custom post type to nav_menu in WordPress?

Posted by Rohit Kumar | Updated on

If you want to add custom post type to nav_menu in WordPress? The function register_post_type() takes an argument show_in_nav_menus. If you set this to TRUE you get a selector for your custom post type in the menu manager.

Add the below code in your theme’s functions.php file OR in site specific plugin.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers