Grow your CSS skills. Land your dream job.

Last updated on:

Enable All Possible Post Formats

For your functions.php file in the 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

Reference URL

Comments

  1. Permalink to comment#

    Can i use my own post format, like a ” web site”?

  2. HG

    Why not work in p2theme?
    How do I add more post-formats to p2 theme?
    Thanks!

Leave a Comment

Current day month ye@r *

*May or may not contain any actual "CSS" or "Tricks".