Codex tools: Log in
Languages: English • (Add your language)
Contents |
Check if the current post has any of the given tags. The given tags are checked against the post's tags' term_ids, names and slugs. Tags given as integers will only be checked against the post's tags' term_ids.
If no tags are given, determines if post has any tags.
<?php has_tag( $tag, $post ); ?>
Since: 2.6.0
has_tag() is located in wp-includes/category-template.php.