WordPress includes support for post formats built into the core.
Some themes include some post formats and others include theme specific support for posts formats.
Regardless of what your theme supports, you can use this PHP code in your child themes functions file to over ride whatever your parent theme supports.
And here’s what the above code generates on the Post Edit screens of the Twenty Twelve default theme for WordPress.
The same is also true for StudioPress and other child themes running on different frameworks and parent themes.
Add Post Formats to Custom Post Types
You’ll need to add this code in your functions file to display the post formats meta box on custom post types:
add_post_type_support( 'reviews', 'post-formats' );
Swap out the name of the custom post type ‘reviews’ with the name of your own custom post type.
Add Post Formats to Pages
You’ll need to add this code in your functions file to display the post formats on Edit Page screens:
add_post_type_support( 'page', 'post-formats' );
Was This Tutorial Helpful?