[theme-reviewers] Post formats
Otto
otto at ottodestruct.com
Fri Nov 5 08:53:40 UTC 2010
Future suggestion, just starting discussion now.
http://wpdevel.wordpress.com/2010/11/05/post-formats-in-core/
Post formats are a new thing that will be in 3.1. Basic idea is to
provide a specific method for specifying the "format" of a post, for
display. This is to replace the usage of categories for much the same
thing.
Example: Asides. In the past, it's often been suggested to make an
"asides" category, and then posts can be put into that category and
displayed differently based on either styling rules from post_class()
or from in_category('asides').
This new approach allows a theme to define a set of post formats like so:
add_theme_support( 'post-formats', array( 'aside', 'gallery', 'whatever' ) );
And then the post format can be selected when saving the post. A
function call of "get_post_format( $post->ID )" can be used to
determine the format, and post_class() will also create
"format-whatever" classes, for pure-css styling.
So, recommendation for future themes (post-3.1): Do not use categories
for displaying posts differently. Instead, support post-formats.
-Otto
More information about the theme-reviewers
mailing list