Reflect nested categories in appearance > menus

Seems to be a long-standing issue. This plugin seems to do the trick.

I’ve also found an alternative solution (which I’ve posted in the thread). Reproduced below:

<?php
  add_filter( 'nav_menu_meta_box_object', 'disable_pagination_in_menu_meta_box', 9 );

  function disable_pagination_in_menu_meta_box($obj) {
    $obj->_default_query = array(
      'posts_per_page' => -1
    );
    return $obj;
  }
?>

Update: Needs to be added with priority 9 to work well with the default filter _wp_nav_menu_meta_box_object

Leave a Comment