the_tags() – Retrieve the tags for a post.
You appear to be a bot. Output may be restricted
Description
Displays the tags for a post.
Usage
the_tags( $before, $sep, $after );
Parameters
- $before
- ( string ) optional – Optional. String to use before the tags. Defaults to 'Tags:'.
- $sep
- ( string ) optional default: , – Optional. String to use between the tags. Default ', '.
- $after
- ( string ) optional – Optional. String to use after the tags. Default empty.
Returns
void
Source
File name: wordpress/wp-includes/category-template.php
Lines:
1 to 11 of 11
function the_tags( $before = null, $sep = ', ', $after = '' ) { if ( null === $before ) { $before = __( 'Tags: ' ); } $the_tags = get_the_tag_list( $before, $sep, $after ); if ( ! is_wp_error( $the_tags ) ) { echo $the_tags; } }