Skip to content

Instantly share code, notes, and snippets.

@jmdodd
Created October 27, 2011 17:28
Show Gist options
  • Save jmdodd/1320216 to your computer and use it in GitHub Desktop.
Save jmdodd/1320216 to your computer and use it in GitHub Desktop.
Add Post Format to the $post taxonomy array
<?php
$postarr['tax_input']['post_format'] = 'post-format-aside';
$postarr['tax_input']['post_format'] = 'post-format-chat';
$postarr['tax_input']['post_format'] = 'post-format-gallery';
$postarr['tax_input']['post_format'] = 'post-format-link';
$postarr['tax_input']['post_format'] = 'post-format-image';
$postarr['tax_input']['post_format'] = 'post-format-quote';
$postarr['tax_input']['post_format'] = 'post-format-status';
$postarr['tax_input']['post_format'] = 'post-format-video';
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment