Ready to get started?Download WordPress


Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/post type supports


Checks a post type's support for a given feature.


 <?php post_type_supports$post_type$supports ); ?> 


(string) (required) Post type. (max. 20 characters)
Default: None
(string) (required) Feature(s) to make available
Default: None
  • 'title'
  • 'editor' (content)
  • 'author'
  • 'thumbnail' (featured image) (current theme must also support Post Thumbnails)
  • 'excerpt'
  • 'trackbacks'
  • 'custom-fields' (see Custom_Fields, aka meta-data)
  • 'comments' (also will see comment count balloon on edit screen)
  • 'revisions' (will store revisions)
  • 'page-attributes' (template and menu order) (hierarchical must be true)
  • 'post-formats' (see Post_Formats)

Return Values

True on success, false on failure.

Change Log

Source File

post_type_supports() is located in wp-includes/post.php.


Post Types: register_post_type(), add_post_type_support(), remove_post_type_support(), post_type_supports(), post_type_exists(), set_post_type(), get_post_type(), get_post_types(), get_post_type_object(), get_post_type_capabilities(), get_post_type_labels(), is_post_type_hierarchical(), is_post_type_archive(), post_type_archive_title()

See also index of Function Reference and index of Template Tags.