Add Post Format Into WordPress

When building a wordpress website there are certain features that do not could pre installed that are available on the .com version. Post format is one of these features.

Recently I have been developing a complex wordpress multi site (hence the lack of posts :/), I found this gem along the way to add post formats into my posts.

Just add this code into your child theme functions file and your away.

1
2
3
4
5
function add_post_formats() {
    add_theme_support( 'post-formats', array( 'gallery', 'quote', 'video', 'aside', 'image', 'link' ) );
}

add_action( 'after_setup_theme', 'add_post_formats', 20 );