[wp-trac] [WordPress Trac] #24727: enable multiple featured images
WordPress Trac
noreply at wordpress.org
Thu Jul 11 16:25:12 UTC 2013
#24727: enable multiple featured images
-----------------------------+-----------------------------
Reporter: doughamlin | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version:
Severity: normal | Keywords:
-----------------------------+-----------------------------
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 );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24727>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list