- 赤色のリンクは、まだ日本語Codexに存在しないページ・画像です。英語版と併せてご覧ください。(詳細)
「テンプレートタグ/wp nav menu」の版間の差分
提供: WordPress Codex 日本語版
< テンプレートタグ
(en:Function Reference/wp_nav_menu 12:38, 20 March 2010 Bono 版を翻訳用にコピー/ author: Benoit G) |
細 (リンク調整、テンプレートタグガイド等挿入/未翻訳) |
||
1行目: | 1行目: | ||
+ | {{NeedTrans}} | ||
+ | {{テンプレートタグガイド|クエリ}}<!-- 試験的に挿入 --> | ||
+ | |||
== Description == | == Description == | ||
− | Display a navigation menu. Menus can be created from the backend: [[ | + | Display a navigation menu. Menus can be created from the backend: [[管理パネル#Appearance|外観]] > [[Appearance Menus SubPanel|Menus]]. |
== Usage == | == Usage == | ||
− | + | <?php wp_nav_menu($args); ?> | |
== Parameters == | == Parameters == | ||
29行目: | 32行目: | ||
</div></pre> | </div></pre> | ||
− | == | + | == Changelog == |
Since [[Version 3.0|3.0]] | Since [[Version 3.0|3.0]] | ||
35行目: | 38行目: | ||
== Source file == | == Source file == | ||
− | <tt>wp_nav_menu()</tt> is located in {{ | + | <tt>wp_nav_menu()</tt> is located in {{Source|wp-includes/nav-menu-template.php|3.0}}. |
== Related == | == Related == | ||
− | {{原文|Function Reference/ | + | {{原文|Function Reference/wp_nav_menu|84503}}<!-- 12:38, 20 March 2010 Bono 版 --> |
{{Tag Footer}} | {{Tag Footer}} | ||
− | + | {{DEFAULTSORT:Wp_nav_menu}} | |
− | [[Category: | + | [[Category:テンプレートタグ]] |
− | [[Category: | + | [[Category:wp3.0]] |
[[en:Function Reference/wp_nav_menu]] | [[en:Function Reference/wp_nav_menu]] |
2010年3月20日 (土) 21:48時点における版
このページ「テンプレートタグ/wp nav menu」は未翻訳です。和訳や日本語情報を加筆してくださる協力者を求めています。
タグ一覧: テンプレートタグ | インクルードタグ | 条件分岐タグ | その他の関数 | Code Reference
使い方: テンプレートタグ入門 | パラメータの渡し方 | 初心者の方へ | その他のテーマ関連資料
Description
Display a navigation menu. Menus can be created from the backend: 外観 > Menus.
Usage
<?php wp_nav_menu($args); ?>
Parameters
- $id
- (integer) (optional) The menu id.
- 初期値: blank
- $slug
- (string) (optional) The menu slug
- 初期値: blank
- $menu
- (string) (optional) The menu name
- 初期値: blank
- $container
- (string) (optional) Parent element of the menu
- 初期値: div
- $container_class
- (string) (optional) The parent element class
- 初期値: blank
- $menu_class
- (string) (optional) The menu class
- 初期値: div
- $format
- (string) (optional) Whether to format the ul
- 初期値: menu
- $fallback_cb
- (string) (optional) If the menu doesn't exists, a callback function will fire
- 初期値: wp_page_menu
- $before_link
- (string) (optional) Output text before the link
- 初期値: なし
- $after_link
- (string) (optional) Output text after the link
- 初期値: なし
- $before_title
- (string) (optional) Output text before the link text
- 初期値: なし
- $after_title
- (string) (optional) Output text after the link text
- 初期値: なし
- $echo
- (boolean) (optional) Whether to echo the menu or return it
- 初期値: true
Examples
<div class="access"> <?php wp_nav_menu(); ?> </div>
Changelog
Since 3.0
Source file
wp_nav_menu() is located in wp-includes/nav-menu-template.php
.
Related
最新英語版: WordPress Codex » Function Reference/wp_nav_menu (最新版との差分)
関数リファレンス、テンプレートタグ目次もご覧ください。