WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#11364 closed defect (bug) (fixed)

Register Post Thumbnails for specific content/post types

Reported by: ryan Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version:
Component: Post Thumbnails Keywords: has-patch needs-testing
Focuses: Cc:

Description

Allow themes to register post thumbnails support for specific post/content types. Discussed here:

http://wpdevel.wordpress.com/2009/12/07/does-anyone-have-any-question-they-would/comment-page-1/#comment-4088

Attachments (1)

11364.diff (3.7 KB) - added by ryan 4 years ago.
Untested

Download all attachments as: .zip

Change History (5)

ryan4 years ago

Untested

comment:1 scribu4 years ago

  • Keywords has-patch needs-testing added

comment:2 ryan4 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [12350]) Allow registering post image support per post type. fixes #11364

comment:3 ryan4 years ago

Register for all types:

add_theme_support('post-images');

For particular types:

add_theme_support('post-images', array('post', 'page'));

comment:4 hakre4 years ago

Related: #11611

Note: See TracTickets for help on using tickets.