the_taxonomies

Sponsored Link

このテンプレートタグは、投稿IDを指定せずに記事のタクソノミーを表示するためにループ内で使用することができます。また、特定のポストのタクソノミーを表示するために、ループ外で使用することができます。

Sponsored Link

This template tag 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.

the_taxonomiesのテンプレートタグ使用方法

<?php the_taxonomies( $args ); ?> 

the_taxonomiesのパラメーター

post

(int) (optional)投稿IDのタクソノミーを取得します。デフォルト:0

(int) (optional) The post ID to get taxonomies of.
Default: 0

before

(string) (optional) タクソノミーリスト前に表示します。デフォルト:なし。

(string) (optional) Display before taxonomies list.
Default: None

sep

(string) (optional) この内の値を持つすべてのタクソノミーを区別します。デフォルト:なし。

(string) (optional) Separate every taxonomy with value in this.
Default: None

after

(string) (optional) タクソノミーリスト後に表示します。デフォルト:なし。

(string) (optional) Display this after the taxonomies list.
Default: None

<?php the_taxonomies('before=<ul>&amp;after=</ul>'); ?> 

ソースファイル

the_taxonomies()は、wp-includes/taxonomy.php内に位置しています。

the_taxonomies() is located in wp-includes/taxonomy.php.

関連テンプレートタグ

get_the_taxonomies, the_tags, the_category

Sponsored Link