Skip to content

Support for Hierarchical Taxonomies #640

@stabilimenta

Description

@stabilimenta

Hi,
I have a custom hierarchical taxonomy for my custom post type. I was trying to use CMB2 to create checkboxes for my form user to select (using taxonomy_multicheck, but I also tried the other taxonomy variants).
It pulls in the taxonomy, but the terms lose their order and hierarchy. (It returns them all in alphabetical order.)
For example,
Art Type Category
Paintings
------Oil
------Acylic
------Watercolor
Sculpture
------Steel
------Bronze
------Mixed Materials

Returns as
Acylic
Bronze
Mixed Materials
Oil
Paintings
Sculpture
Steel
Watercolor

It would be a nice feature to be able to preserve the hierarchy.
Thank you for CMB2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions