Custom input method for hierarchical taxonomy associated with custom post

Support General Custom input method for hierarchical taxonomy associated with custom post

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40323
    Scott BrimScott Brim
    Participant

    I have a mb_frontend_form for creating a custom post. One of the fields for the post is a hierarchical taxonomy with about 100 terms. I can't find a nice way to make this easy for the users. If I set field type to Select, Select Advanced, or Checkbox List, terms are not displayed in a hierarchy. Select Tree for some reason shows only parent terms, not children. Checkbox list works, but with a lot of terms it overwhelms the rest of the input form.

    What I would like is an accordion tree view with checkboxes, so the user can browse through a compact representation of the term hierarchy and select terms conveniently.

    Maybe I could create a metabox with a Select, Checkbox List, or maybe Select Advanced field, with 'flatten' => false??

    Or perhaps create a new field type that does everything beautifully? There's some good jquery out there.

    Please advise. I'm hoping this is easy. Thanks.

    #40324
    Scott BrimScott Brim
    Participant

    Oops In "Checkbox list works, but with a lot of terms it overwhelms the rest of the input form", I meant Checkbox Tree. Thanks.

    #40355
    PeterPeter
    Moderator

    Hello Scott,

    Meta Box only supports two field types to display hierarchical taxonomy which are select_tree and checkbox_tree. If they are not meet your requirements, please consider creating a custom field type. Read more on the documentation https://docs.metabox.io/creating-new-field-types/

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.