Displays the taxonomies of a post with available options.
Description
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
$argsarrayoptional
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.Default: array()
$postint|WP_Postdefault: current post
Post ID or object to get taxonomies of.
$beforestringdefault: empty string
Displays before the taxonomies.
$sepstringdefault: is a space
Separates each taxonomy.
$afterstringdefault: empty string
Displays after the taxonomies.
Uses · 2
wp_parse_args()Merges user defined arguments into defaults array.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/taxonomy.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.