You appear to be a bot. Output may be restricted
Description
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.
Usage
the_taxonomies( $args );
Parameters
- $args
- ( array ) optional – { 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.
- $post
- ( int|WP_Post ) optional – Post ID or object to get taxonomies of. Default current post.
- $before
- ( string ) optional – Displays before the taxonomies. Default empty string.
- $sep
- ( string ) optional – Separates each taxonomy. Default is a space.
- $after
- ( string ) optional – Displays after the taxonomies. Default empty string. }
Returns
void
Source
File name: wordpress/wp-includes/taxonomy.php
Lines:
1 to 13 of 13
function the_taxonomies( $args = array() ) { $defaults = array( 'post' => 0, 'before' => '', 'sep' => ' ', 'after' => '', ); $parsed_args = wp_parse_args( $args, $defaults ); echo $parsed_args['before'] . implode( $parsed_args['sep'], get_the_taxonomies( $parsed_args['post'], $parsed_args ) ) . $parsed_args['after']; }