the_taxonomies

SummerySummery

Display the taxonomies of a post with available options.

Syntax

the_taxonomies( array $args = array() )

DescriptionDescription

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.

ParametersParameters

$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) Post ID or object to get taxonomies of. Default current post.
  • 'before'
    (string) Displays before the taxonomies. Default empty string.
  • 'sep'
    (string) Separates each taxonomy. Default is a space.
  • 'after'
    (string) Displays after the taxonomies. Default empty string.

Default value: array()

SourceSource

File: wp-includes/taxonomy.php


			

ChangelogChangelog

Changelog
Version Description
2.5.0 Introduced.
Scroll to Top