wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



the_tags › WordPress Function

Depuis2.3.0
Dépréciéen/a
the_tags ( $before = null, $sep = ', ', $after = '' )
Paramètres: (3)
  • (string) $before Optional. String to use before the tags. Defaults to 'Tags:'.
    Requis: Non
    Défaut: null
  • (string) $sep Optional. String to use between the tags. Default ', '.
    Requis: Non
    Défaut: ', '
  • (string) $after Optional. String to use after the tags. Default empty.
    Requis: Non
    Défaut: (vide)
Défini(e) dans:
Codex:

Displays the tags for a post.



Fonctions en relation: get_the_tags, the_meta, get_tags, the_terms, has_tag

Source

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;
	}
}