SLUG Limit for Custom Taxonomy Terms

Support General SLUG Limit for Custom Taxonomy TermsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #46133
    saintsaint
    Participant

    Hi,

    I am trying to create a custom taxonomy for a CPT, and am running into a 20-character limit.

    https://share.zight.com/L1uEoRQR

    I have a significant amount of Custom Taxonomies, and for organizational purposes when I'm developing and pulling down these slugs from a drop-down list in other plugins, or when ensuring they are unique to the CPT that they're assigned to, they need to be clear.

    My questions are:

    - Is there a performance issue or some other problem that occurs when a slug is > 20-characters?
    - If not, how can we create slugs that are longer than that?

    Thank you.

    #46139
    PeterPeter
    Moderator

    Hello,

    It is the limitation of WordPress for the slug. You can read more in the WordPress documentation
    https://developer.wordpress.org/reference/functions/register_taxonomy/

    max characters for the taxonomy slug is 32, I will inform the development team to update the message to show the correct number. If you create more than 32 chars, the taxonomy might not appear in the admin menu.

    #46147
    saintsaint
    Participant

    Ok, great! Thank you Peter.

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