wpseek.com
WordPress开发者和主题制作者的搜索引擎
the_taxonomies › WordPress Function
Since2.5.0
已弃用n/a
› the_taxonomies ( $args = array() )
参数: |
|
定义在: |
|
文档: |
Displays 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.Related Functions: get_the_taxonomies, get_taxonomies, get_post_taxonomies, get_taxonomy, get_object_taxonomies
源码
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']; }