Description:

In this wordpress tutorial i’ll show you how to add posts formats to your wordpress theme. Using the post formats you will have the ability to create different kind of post, such as gallery, links or status message.

You need to customize not only your theme, but also your css, your home page and your archives pages to display published posts format.

The Code:

Post Formats:

New feature indroduced in wordpress 3.1, you can publish your posts in different kinds of formats between standards formats. Wp 3.1 supports the following formats: Standard, gallery, links, image, quote, status, video, audio, chat.

To add the post formats to your theme, add this code to your function.php:

add_theme_support( 'post-formats', array( 'aside', 'gallery', 'other supported formats' ) );

// add post-formats to post_type 'page'
add_post_type_support( 'page', 'post-formats' );

// add post-formats to post_type 'my_custom_post_type'
add_post_type_support( 'my_custom_post_type', 'post-formats' );

At this point a meta box in your post page will appear including the added post formats.

Display Post Formats on your theme:

Now you could add theme support to show the post format in your index, and archives so:

if ( has_post_format( 'video' )) {
  echo 'this is the video format';
}

You need to use wordpress hook, like the_title, the_content ecc ecc instead of echo ‘this is the vido format’;

Custom format css style:

Finally you could create new div and syle to customize the formats displayng of posts for each format, would be somethings like:

.format-status .post-title {
display:none;
}

For more reference Post formats on wp codex