Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11364 closed defect (bug) (fixed)

Register Post Thumbnails for specific content/post types

Reported by: ryan's profile 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 15 years ago.
Untested

Download all attachments as: .zip

Change History (5)

@ryan
15 years ago

Untested

#1 @scribu
15 years ago

  • Keywords has-patch needs-testing added

#2 @ryan
15 years ago

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

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

#3 @ryan
15 years ago

Register for all types:

add_theme_support('post-images');

For particular types:

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

#4 @hakre
15 years ago

Related: #11611

Note: See TracTickets for help on using tickets.