<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>

<channel>
	<title>wordpressテンプレート - カスタマイズ リファレンス &#187; テンプレートタグ</title>
	<atom:link href="http://wordpress.web-nouhau.com/category/templatetag/feed" rel="self" type="application/rss+xml" />
	<link>http://wordpress.web-nouhau.com</link>
	<description>テンプレート プラグイン マニュアル 使い方 テーマ インストール wordpress mu</description>
	<pubDate>Tue, 23 Jun 2009 07:16:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>wp_list_pages</title>
		<link>http://wordpress.web-nouhau.com/archives/41</link>
		<comments>http://wordpress.web-nouhau.com/archives/41#comments</comments>
		<pubDate>Mon, 22 Jun 2009 13:09:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[テンプレートタグ]]></category>

		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://wordpress.web-nouhau.com/?p=41</guid>
		<description><![CDATA[テンプレートタグ wp_list_pages() は,WordPressのページ部分を表示します。
使い方

&#60;?php wp_list_pages('引数'); ?&#62;

初期設定

$defaults = array(
    'depth'       =&#62; 0,
    'show_date'   =&#62; '',
    'date_format' =&#62; get_option('date_format'),
    'child_of'    =&#62; 0,
    'exclude'     =&#62; '',
    [...]]]></description>
			<content:encoded><![CDATA[<p>テンプレートタグ wp_list_pages() は,WordPressのページ部分を表示します。</p>
<p><strong>使い方</strong></p>
<pre class="brush: php;">
&lt;?php wp_list_pages('引数'); ?&gt;
</pre>
<p><strong>初期設定</strong></p>
<pre class="brush: php;">
$defaults = array(
    'depth'       =&gt; 0,
    'show_date'   =&gt; '',
    'date_format' =&gt; get_option('date_format'),
    'child_of'    =&gt; 0,
    'exclude'     =&gt; '',
    'title_li'    =&gt; __('Pages'),
    'echo'        =&gt; 1,
    'authors'     =&gt; '',
    'sort_column' =&gt; 'menu_order, post_title',
    'link_before' =&gt; '',
    'link_after'  =&gt; '',
    'exclude_tree'=&gt; '' );
</pre>
<p>リストの見出しを非表示にする場合</p>
<p>wp_list_pages が表示するページリストのデフォルトの見出し (「ページ」) は title_li パラメータに空の値を入れると非表示することができます。<br />
以下の例はページリストの上に見出しのテキストを非表示にします。 </p>
<pre class="brush: php;">
&lt;ul&gt;
&lt;?php wp_list_pages('title_li='); ?&gt;
&lt;/ul&gt;
</pre>
<p>下記の例では ID が 9, 5, 23 のページだけを表示し、見出しのテキストを「Poetry」に置き換え、タグを h2 に変更しています。</p>
<pre class="brush: php;">
&lt;ul&gt;
&lt;?php wp_list_pages('include=5,9,23&amp;title_li=&lt;h2&gt;' . __('Poetry') . '&lt;/h2&gt;' ); ?&gt;
&lt;/ul&gt;
</pre>
<p>リストの順序を変える<br />
下の例では ページ > 新規追加 で設定されたページ順序に従ってページリストを表示します。</p>
<pre class="brush: php;">
&lt;ul&gt;
  &lt;?php wp_list_pages('sort_column=menu_order'); ?&gt;
&lt;/ul&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://wordpress.web-nouhau.com/archives/41/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
