Custom Fields
Re-Envisioned
Support General Can a Taxonomy using select_tree have a different placeholder in each hierarchy?

  • Creator
    Topic
  • #20375
    SeanBurchell
    Participant

    There’s something I’m working on that I need some help with. I have a taxonomy using a select_tree field type, and it seems to inherit the Select2 library. Say I have a simple taxonomy where the parent is a state, and a store in that given parent state is set as a child term. The select tree is then 2 select boxes. I’d like to have the first say something like “Select State,” and the second “Select Store.”

    The problem I have is a placeholder I set like “Select Store” is set for both boxes, and I’m having a great difficulty in changing one or the other. Is it possible to set different placeholders for a term in the hierarchy from the options provided by the Meta Box framework?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #20378
    Long Nguyen
    Moderator

    Hi Sean,

    Because both state and store (child term) are terms of the taxonomy name Store so the placeholders of select tree field type only support to show the text “Select a Store”. But thanks for your idea, I will create a feature request to support showing the different text for child terms.

    #20429
    SeanBurchell
    Participant

    Thank you for the consideration!

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