Skip to content
Justin Tadlock edited this page Jul 29, 2014 · 14 revisions

Post Metadata standards for general use across multiple post types.

Current Standards

General naming standards for post metadata

  • Meta keys should be all lowercase letters (thing rather than Thing).
  • Meta keys should be prefixed with an underscore (_thing).
  • Meta keys should also be prefixed with the post type name with exceptions for longer post type names (_post_type_thing).
  • Multiple words should be split with an underscore (_post_type_thing_a).