Skip to content

Category Selection Shows Truncated List #5820

Closed

Description

@brysont

Issue Overview

When assigning category(s) to a post, only 32 categories show up. 171 categories in all, but only a random first 32 appear in the editor (possibly sorted by use?).

And yes, that many. Sports site covering all professional American leagues and teams = 171 categories.

Steps to Reproduce (for bugs)

  1. Create 33 or more categories
  2. Create a new post and try to assign each of the 33+ categories

Using Chrome 65 on a Windows 10 machine (all updates current). WordPress 4.9.4, also fully updated. Gutenberg 2.4.0.

Expected Behavior

All categories should be visible, likely via use of scrolling overflow for the parent .components-panel__body.is-opened div to the .editor-post-taxonomies__hierarchical-terms-choice div. The list of categories shown is truncated to 32 results, as adding overflow: scroll; or overflow: auto; to the CSS doesn't help.

At the very least, it should work like the category list in the classic editor, loading all into a scrollable box. A possible improvement would be to load all parent categories in that manner, each one able to be clicked and expanded to show child categories for selection. On an edited post (categories already assigned), classic editor functionality could be used (pinning assigned categories to the top of the list, out of context), or the appropriate parent category(s) could initialize expanded, to show the assigned children.

Activity

  1. karmatosed commented on Mar 27, 2018

    @karmatosed
    Member

    This looks like a similar issue to #4022 so closing for that. Thanks.

  2. brysont commented on Mar 27, 2018

    @brysont
    Author

    Negative. #4022 refers to content output of a category list (frontend).

    My issue is about post metadata selection (backend).

  3. karmatosed commented on Mar 27, 2018

    @karmatosed
    Member

    Thanks for clarifying. I am going to cc someone in to double check they aren't related and try and get some progress for you - reopening while that happens. @pento do you have any insights here?

  4. added
    [Type] Bug
    on Mar 29, 2018
  5. added this to the milestone on Apr 11, 2018
  6. added
    Core REST API Task
    on Apr 11, 2018
  7. danielbachhuber commented on Apr 11, 2018

    @danielbachhuber
    Member

    It's the REST API pagination issue. We can keep this open until it's resolved.

  8. added
    [Priority] High
    on Apr 26, 2018
  9. richardiriwn commented on May 3, 2018

    @richardiriwn

    I have a similar problem. Web sites highly dependent upon categories for navigation. However with Gutenberg enabled, I only see a list of 2 out of several hundred when I create or edit post or page.
    Nice looking editor!

  10. Karlheinzniebuhr commented on Aug 18, 2018

    @Karlheinzniebuhr

    For me, they don't show up at all. None, zero visible categories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Core REST API Task[Priority] High[Type] Bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions