post format wordpress

107

Posted on <?php the_time( 'l, F jS, Y' ); ?>.
add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
if ( has_post_format( 'aside' )) {
  // do something for asides
} elseif ( has_post_format( 'image' )) {
  // something for images
} elseif ( has_post_format( 'video' )) {
  // etc, etc
}
 // etc, etc

Comments

Submit
0 Comments