Monday, July 15, 2013

How to Use All Possible Post Formats in your WordPress Website

This snippet code will help you to enable all possible post formats of your Wordpress website.

don't forget to add it on functions.php file of your current theme.

add_theme_support( 'post-formats', 
array(
'aside',
'gallery',
'link',
'image',
'quote',
'status',
'video',
'audio',
'chat'
)
);
add_post_type_support( 'post', 'post-formats' );
add_post_type_support( 'page', 'post-formats' );
// and other custom post types if you have them


Disqus Comments