With WordPress 3.1, Post Formats were added, which makes WordPress a hybrid between its traditional CMS/blog environment and Tumblr's quick posting format. This cross or hybrid makes WordPress much more powerful and flexible.
To check to see whether the current theme supports post formats use the following conditional to do nothing if the theme does not support post formats:
[php]if ( !current_theme_supports( 'post-formats' ) || !function_exists( 'get_post_format' ) )
return;[/php]
Or with Genesis:
[php]if ( !current_theme_supports( 'post-formats' ) || !current_theme_supports( 'genesis-post-format-images' ) || !function_exists( 'get_post_format' ) )
return;[/php]
To add theme support for post formats, you will need to add the following:
[php]add_theme_support( 'post-formats', array( 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) );[/php]
For Genesis child themes, you'll need to add an additional theme support which is used in the genesis function, genesis_do_post_format_image().
[php]add_theme_support( 'genesis-post-format-images' );[/php]