Title: Only main menu
Last modified: August 21, 2016

---

# Only main menu

 *  Resolved [Hatchman](https://wordpress.org/support/users/hatchman/)
 * (@hatchman)
 * [13 years ago](https://wordpress.org/support/topic/only-main-menu/)
 * I would like to modify this plugin so that it only hides pages from the main 
   menu that is automatically generated from the page list. I would like to build
   custom navs with these hidden pages. Any suggestions?
 * [http://wordpress.org/extend/plugins/pc-hide-pages/](http://wordpress.org/extend/plugins/pc-hide-pages/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Hatchman](https://wordpress.org/support/users/hatchman/)
 * (@hatchman)
 * [13 years ago](https://wordpress.org/support/topic/only-main-menu/#post-3715019)
 * It seems that by commenting out the wp_nav_menu_object you get the desired result
   of only working in the main menu. At this point I do not understand the code 
   well enough to comment further.
 * //add_filter( ‘wp_nav_menu_objects’, array( &$this, ‘wp_nav_menu_objects’ ) );

Viewing 1 replies (of 1 total)

The topic ‘Only main menu’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/pc-hide-pages_a7a294.svg)
 * [PC Hide Pages](https://wordpress.org/plugins/pc-hide-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pc-hide-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pc-hide-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/pc-hide-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pc-hide-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pc-hide-pages/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Hatchman](https://wordpress.org/support/users/hatchman/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/only-main-menu/#post-3715019)
 * Status: resolved