- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「関数リファレンス/the taxonomies」の版間の差分
提供: WordPress Codex 日本語版
< 関数リファレンス
細 (→Related) |
細 (→Related: Category:タクソノミー を追加。) |
||
55行目: | 55行目: | ||
{{原文|Function Reference/the taxonomies|144577}} <!-- 20:55, 30 June 2014 Juliobox 版 --> | {{原文|Function Reference/the taxonomies|144577}} <!-- 20:55, 30 June 2014 Juliobox 版 --> | ||
− | [[Category: | + | {{DEFAULTSORT:The_taxonomies}} |
+ | [[Category:テンプレートタグ]] | ||
+ | [[Category:タクソノミー]] | ||
[[en:Function Reference/the taxonomies]] | [[en:Function Reference/the taxonomies]] |
2014年7月6日 (日) 01:03時点における版
このページ「関数リファレンス/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
関数リファレンス、テンプレートタグ目次もご覧ください。
最新英語版: WordPress Codex » Function Reference/the taxonomies (最新版との差分)