Skip to content

Instantly share code, notes, and snippets.

@adamcbrewer
Created March 14, 2012 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamcbrewer/2038244 to your computer and use it in GitHub Desktop.
Save adamcbrewer/2038244 to your computer and use it in GitHub Desktop.
WP: Creating New Post Formats
<?php
/**
* Location: functions.php
*
*/
// comment out as necessary
// use for styling 'format-{type}' class generated from post_class() in the loop
if ( function_exists( 'add_theme_support' ) ) {
add_theme_support('post-formats',
array(
'aside',
'gallery',
'link',
'image',
'quote',
'status',
'video',
'audio',
'chat'
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment