Codex tools: Log in
Languages: English • (Add your language)
Contents |
Returns a boolean if the specified post format is assigned (true) or not (false) to the post. This will usually be called in the the loop, but can be used anywhere if a post ID is provided.
<?php $format = has_post_format($format,$post_id); ?>
has_post_format() is located in wp-includes/post.php.
Post Formats: set_post_format(), get_post_format(), has_post_format()