Custom Fields
Re-Envisioned
Support General Select Box – Taxonomy use slug as value?

This topic contains 3 replies, has 2 voices, and was last updated by  Anh Tran 2 years, 4 months ago.

  • Creator
    Topic
  • #4313

    MD3
    Participant

    I have a taxonomy used for selectbox and i want to use slug as value instead of ID. How to do that?
    I tried adding an array in [‘options’] but its not working

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #4315

    Anh Tran
    Keymaster

    Unfortunately, it’s not supported at the moment. Taxonomy field (and user, post fields) stores the term IDs in the database.

    #4331

    MD3
    Participant

    Thank you. Hopefully you an support it in your next update.

    #4344

    Anh Tran
    Keymaster

    Just curious, why do you need to store slug instead of ID?

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.