Make WordPress Core

Opened 11 years ago

Closed 9 years ago

#24727 closed enhancement (wontfix)

enable multiple featured images

Reported by: doughamlin's profile doughamlin Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Post Thumbnails Keywords:
Focuses: Cc:

Description

Currently featured images can be enabled by calling add_theme_support and passing in the post types for which you would like to enable them.

add_theme_support( 'post-thumbnails', array( 'post' ) );

However, each post can have only one featured image. There are many instances in theme development in which you want to be able to call multiple images that have been explicitly defined by the site editor. Currently the Multiple Featured Images plug-in http://wordpress.org/plugins/multiple-featured-images provides this functionality, however it feels like a hack and something that should be native. The plug-in also uses the old WordPress media upload interface, leading to an inconsistent experience.

The number of featured images could simply be another argument to add_theme_support

add_theme_support( 'post-thumbnails', array( 'post' ) );
add_theme_support( 'post-thumbnails', array( 'project' ), 3 );
add_theme_support( 'post-thumbnails', array( 'person' ), 2 );

Change History (3)

#1 @johnbillion
11 years ago

There is actually a better and more up to date plugin for this: Multiple Post Thumbnails. I've used it several times previously.

Related: #19257.

#2 @sabreuse
11 years ago

  • Cc sabreuse added

#3 @chriscct7
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed

This is plugin territory. Closing as wontfix

Note: See TracTickets for help on using tickets.