has_post_format() vs. get_post_format()
Edit has_post_format() requires a string, $format, as the first parameter; which means that it can only be used to test for explicit post-format types: if ( has_post_format( $format ) { // Current post has the $format post format; // do something } To determine if a post has any post format, use get_post_format(), which will … Read more