[wp-trac] [WordPress Trac] #9674: Better support for custom post types
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 8 13:56:21 UTC 2010
#9674: Better support for custom post types
------------------------------------+---------------------------------------
Reporter: wnorris | Owner: ryan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 3.0
Component: Administration | Version: 2.9
Severity: normal | Resolution:
Keywords: has-patch tested early |
------------------------------------+---------------------------------------
Comment(by prettyboymp):
To get clarification, there have been suggestions for:[[BR]]
1. add_post_type_support( 'post_comment_meta_box' ) and
post_type_supports( 'post_comment_meta_box' )[[BR]]
2. register_post_type('thingie', array( 'supports' => array('revisions',
....) );[[BR]]
If we do either/both of these, we will have to somehow map an identifier
back to the actual metabox handling. Should it continue to do this in a
"hardcoded" way like the post-thumbnails currently is, and if so, what
should the keys be? IE, how 'post-thumbnails' is mapped to
'post_thumbnail_meta_box':
{{{
if ( current_theme_supports( 'post-thumbnails', $post_type ) )
add_meta_box('postimagediv', __('Post Thumbnail'),
'post_thumbnail_meta_box', $post_type, 'side', 'low');
}}}
Also, should the core metaboxes really integrate differently than the
metaboxes that plugins provide?
The problem I forsee is the lack of ability for end users to combine a
plugin that adds a custom post_type with a plugin that adds a meta
handler. For instance, a user has a website and finds a plugin that adds
an events post_type to their site. They later decide to add a geo-
coordinates plugin that allows them to a post, but they want this also to
apply to their events post_type. How can we make this happen without
requiring the end user to edit code?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9674#comment:122>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list