wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



the_tags › WordPress Function

Od2.3.0
Przestarzałyn/a
the_tags ( $before = null, $sep = ', ', $after = '' )
Parametry: (3)
  • (string) $before Optional. String to use before the tags. Defaults to 'Tags:'.
    Wymagane: Nie
    Domyślny: null
  • (string) $sep Optional. String to use between the tags. Default ', '.
    Wymagane: Nie
    Domyślny: ', '
  • (string) $after Optional. String to use after the tags. Default empty.
    Wymagane: Nie
    Domyślny: (puste)
Zdefiniowane na:
Codex:

Displays the tags for a post.



Źródło

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