• Hello

    I have created a custom taxonomy and added terms in a three-level structure, and realized that the term “UNIVERSAL” was not added to the parent “Universal” because the term already existed. Apparently the function term_exists perform a case insensitive query. I have been looking everywhere for information but found near to nothing. Is it possible to have case sensitive terms in a taxonomy? Can anybody help? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    It depends on the DB configuration and the underlying O/S. Some are case sensitive and others not. Because of this, it’s best to not rely upon case insensitivity when determining a match does not exist. For the most consistency, I recommend avoiding names altogether and rely upon slugs or IDs to ensure you’re dealing with the object you think you are.

    But to answer your question, if you are on a case sensitive O/S (*nix) and you alter all the DB collation settings to be case sensitive, I think it’s possible for a specific installation. Don’t expect it to be portable to other installations though.

    Thread Starter mcpab68

    (@mcpab68)

    Thank you very much. I like the idea of identifying terms (tree nodes) with the slug, as you suggest.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Taxonomy Term – Case Insensitive’ is closed to new replies.