[wp-trac] [WordPress Trac] #14746: Post Kinds/Styles/Types

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 1 16:48:44 UTC 2010


#14746: Post Kinds/Styles/Types
-------------------------+--------------------------------------------------
 Reporter:  ryan         |       Owner:                 
     Type:  enhancement  |      Status:  new            
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Template     |     Version:                 
 Severity:  normal       |    Keywords:                 
-------------------------+--------------------------------------------------
Description changed by ryan:

Old description:

> Allow denoting a post as a certain style/type/kind.  Some example styles
> are aside, gallery, link, quote.  This will allow themes to style these
> posts according to kind.
>
> This can be implemented as a custom taxonomy. wp_post_style, for example.
> Terms within wp_post_style would be the styles.  Some core styles will be
> pre-populated.  The slugs and names will be stored as English. Dummy
> gettext calls will get the strings into the catalog and later the fetched
> names can be run through translate().
>
> It can also be implemented as a post meta field.  Since there can be only
> one type per post, a taxonomy could be overkill. Using meta would also
> save us an extra taxonomy query.  Using a taxonomy would, however, make
> it easier for plugins to add new types persistently.
>
> UI on the edit post form will allow selecting from one of the types.
> Themes will be provided some simple API such as get_post_style() and
> has_post_style().

New description:

 Allow denoting a post as a certain style/type/kind.  Some example styles
 are aside, gallery, link, quote.  This will allow themes to style these
 posts according to kind.

 This can be implemented as a custom taxonomy. wp_post_style, for example.
 Terms within wp_post_style would be the styles.  Some core styles will be
 pre-populated.  The slugs and names will be stored as English. Dummy
 gettext calls will get the strings into the catalog and later the fetched
 names can be run through translate().

 It can also be implemented as a post meta field.  Since there can be only
 one type per post, a taxonomy could be overkill.  Using a taxonomy would,
 however, make it easier for plugins to add new types persistently.

 UI on the edit post form will allow selecting from one of the types.
 Themes will be provided some simple API such as get_post_style() and
 has_post_style().

--

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14746#comment:36>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list