the_terms

Sponsored Link

カスタムタクソノミーのタームを表示します。

Sponsored Link

Displays the terms of a custom taxonomy.

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

<?php the_terms( $id, $taxonomy, $before, $sep, $after ); ?> 

the termsのパラメーター

$id

(int) 投稿IDです。

(int) Post ID.

$taxonomy

(string) タクソノミー名です。

(string) Taxonomy name.

$before

(string) 実際のタグが表示される前にテキストが表示されます。デフォルトは、表示されません。

(string) Text to display before the actual tags are displayed. The default is to display nothing.

$separator

(string) テキストまたは文字列は、それぞれのリンクタグの間に表示されます。デフォルトは、各タグの間にコンマ(、)です。

(string) Text or character to display between each tag link. The default is a comma (,) between each tag.

$after

(string) テキストは、最後のタグの後に表示されます。デフォルトでは、何も表示されません。

(string) Text to display after the last tag. The default is to display nothing.

変更ログ

Since: 2.5.0

ソースファイル

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

the_terms() is located in wp-includes/category-template.php.

Sponsored Link