- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/the taxonomies」の版間の差分
細 (→Related: Category:タクソノミー を追加。) |
細 (→Related) |
||
51行目: | 51行目: | ||
[[Function_Reference/the_category|the_category]] | [[Function_Reference/the_category|the_category]] | ||
+ | {{Taxonomy Tags}} | ||
{{Tag Footer}} | {{Tag Footer}} | ||
2014年7月6日 (日) 01:26時点における版
このページ「関数リファレンス/the taxonomies」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
Description
This template tag can be used within The Loop to display Links for taxonomies and belonging Terms for a post without specifying the Post ID. You can also use it outside The Loop to display the taxonomies for a specific post.
Usage
<?php the_taxonomies( $args ); ?>
Parameters
- post
- (int) (optional) The post ID to get taxonomies of.
- 初期値: 0
- before
- (string) (optional) Display before taxonomies list.
- 初期値: なし
- sep
- (string) (optional) Separate every taxonomy with value in this.
- 初期値: ' '
- after
- (string) (optional) Display this after the taxonomies list.
- 初期値: なし
- template
- (string) (optional) Template used to display the taxonomies list.
- 初期値: '%s: %l.'
Returns
A List of Links to your Tags in the taxonomies
Taxonomy Name: <a href="http://example.com/term_slug/">Term Name</a>, <a href="http://example.com/term_slug-2/">Term Name 2</a>, and <a href="http://example.com/term_slug-3/">Term Name 3</a>, .
Example
<?php the_taxonomies('before=<ul>&after=</ul>'); ?> <?php $args = array( //default to current post 'post' => 0, 'before' => '<p class="meta">', //this is the default 'sep' => ' ', 'after' => '<p class="meta">', //this is the default 'template' => '%s: %l.' ); the_taxonomies($args); ?>
Source File
the_taxonomies() is located in wp-includes/taxonomy.php
.
Related
get_the_taxonomies, the_tags, the_category
カスタム分類: get_taxonomy(), taxonomy_exists(), register_taxonomy(), get_taxonomies(), the_taxonomies(), get_taxonomy_labels(), get_taxonomy_template(), is_object_in_taxonomy(), get_the_taxonomies(), get_post_taxonomies(), get_object_taxonomies(), is_taxonomy_hierarchical()
最新英語版: WordPress Codex » Function Reference/the taxonomies (最新版との差分)