Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.