WordPress.org

Ready to get started?Download WordPress

Forums

Category checklist hierarchy is broken (1 post)

  1. ralphonz
    Member
    Posted 3 months ago #

    I'm making this post for a few reasons:

    1. It took me a long time to search for a solution
    2. I have a solution that may help others
    3. I believe it requires serious attention from wordpress developers

    I'm a long-time and very grateful user of wordpress. I've built a great many websites using it as a platform for all sorts of clients. However, this issue has been around as long as I've been using wordpress and needs to be taken seriously by the core developers.

    If you create a lot of hierarchal taxonomies, they are not displayed correctly in the checklist on either the post/page or add to menu screen. This is really, really really confusing if some of the sub taxonomies have the same title as you can't distinguish one from the other.

    It also makes most people think that they haven't nested their taxonomies correctly.

    The thing is the fix is very very desirable, and also very very easy! It's just one little number:

    //fix the display of catalog categories in appearance->menu
    add_filter( 'get_terms_args', 'checklist_args', 10, 2 );
      function checklist_args( $args, $taxonomies )
      {
        $menu_taxonomies = array('shopp_category', 'page', 'category','post');
        if(in_array($taxonomies[0], $menu_taxonomies))
        {
          $args['number'] = 1000;
        }
        return $args;
      }

    Where this problem is at it's worst is on e-commerce sites with a lot of categories.

    WordPress, please fix it! For the life of me I cannot see why you'd want it the way it is at the moment.

Reply

You must log in to post.

About this Topic