Advertisements

the_taxonomies

Definition:
function the_taxonomies($args = array() {}

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.

Parameters

  • array $args: Override the defaults.

Source code

function the_taxonomies($args = array()) {

	$defaults = array(

		'post' => 0,

		'before' => '',

		'sep' => ' ',

		'after' => '',

		'template' => '%s: %l.'

	);



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

	extract( $r, EXTR_SKIP );



	echo $before . join($sep, get_the_taxonomies($post, $r)) . $after;

}

3045

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: