Title: View All Menu Items Breaks
Last modified: January 8, 2020

---

# View All Menu Items Breaks

 *  [asila96](https://wordpress.org/support/users/asila96/)
 * (@asila96)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/view-all-menu-items-breaks/)
 * First of all, this is a nifty little plugin that I’ve used successfully in a 
   couple projects now. If you have a ton of categories on your site, this is super
   helpful!
 * I did just discover a small bug related to menu items. If you are editing a menu
   from the WordPress admin and click on “View All,” the Better Categories functions
   end up applying to that list of pages. Any subpages in that list will be hidden,
   but unfortunately you won’t be able to toggle the parent item to view them.
 * I solved this on my end by editing better-categories.php in the plugin folder.
   There is probably a better way to do this, but I was just looking for a quick
   fix:
 * In function bc_os_print_scripts(), edit the code to be wrapped in the following
   IF condition:
 *     ```
       <script type='text/javascript'>
       jQuery(document).ready(function(){
   
       if (jQuery("#pagechecklist").length === 0) {
   
       /* for post add/edit screen*/
       [ALL THE REST OF THE CODE]
   
       }
   
       });
       </script>
       ```
   
 * This prevents Better Categories from firing on the Edit Menu page, but it continues
   to work fine where we actually need it.

The topic ‘View All Menu Items Breaks’ is closed to new replies.

 * ![](https://ps.w.org/better-categories/assets/icon-256x256.jpg?rev=1643686)
 * [Better Categories](https://wordpress.org/plugins/better-categories/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-categories/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-categories/)
 * [Active Topics](https://wordpress.org/support/plugin/better-categories/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-categories/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-categories/reviews/)

## Tags

 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [View All](https://wordpress.org/support/topic-tag/view-all/)

 * 0 replies
 * 1 participant
 * Last reply from: [asila96](https://wordpress.org/support/users/asila96/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/view-all-menu-items-breaks/)
 * Status: not a support question