Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



the_taxonomies ›

Seit2.5.0
Veraltetn/v
the_taxonomies ( $args = array() )
Parameter:
  • (array) $args { Arguments about which post to use and how to format the output. Shares all of the arguments supported by get_the_taxonomies(), in addition to the following.
    Erforderlich: Nein
    Standard: array()
Definiert in:
Codex:

Display the taxonomies of a post with available options.

This function can be used within the loop to display the taxonomies for a post without specifying the Post ID. You can also use it outside the Loop to display the taxonomies for a specific post.



Quellcode

function the_taxonomies( $args = array() ) {
	$defaults = array(
		'post'   => 0,
		'before' => '',
		'sep'    => ' ',
		'after'  => '',
	);

	$r = wp_parse_args( $args, $defaults );

	echo $r['before'] . join( $r['sep'], get_the_taxonomies( $r['post'], $r ) ) . $r['after'];
}