WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The WordPress Codex states the the Post Type Names and Taxonomy Names have a limit to the slug name.

  • Register Post Type -- max. 20 characters, can not contain capital letters or spaces
  • Register Taxonomy -- The name of the taxonomy. Name should be in slug form (must not contain capital letters or spaces) and not more than 32 characters long (database structure restriction).

However, the WordPress Codex doesn't state whether or not Post Meta or Terms have a limit to the slug name.

Can this be confirmed? Is there no slug name limit for Post meta or Terms?

share|improve this question
up vote 2 down vote accepted

The meta_key field for the wp_postmeta table is set as varchar type entries with a length of 255 characters. Seems pretty lengthy. It's meta_value partner parameter is set as longtext type.

As for the term length, both name and slug are set as varchar with a length of 200 characters each in the wp_terms table.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.