<?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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Curtis Blackwell &#187; wp_list_pages</title>
	<atom:link href="http://curtisblackwell.com/tag/wp_list_pages/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtisblackwell.com</link>
	<description>Curtis Blackwell&#039;s portfolio of web &#38; graphic design, accompanied by a design blog..</description>
	<lastBuildDate>Mon, 22 Mar 2010 21:43:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Finding the Page ID Numbers in WordPress</title>
		<link>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/</link>
		<comments>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 23:21:02 +0000</pubDate>
		<dc:creator>Curtis</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[exclude pages]]></category>
		<category><![CDATA[page id]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress theme development]]></category>
		<category><![CDATA[wp list pages]]></category>
		<category><![CDATA[wp_list_pages]]></category>

		<guid isPermaLink="false">http://curtisblackwell.com/?p=269</guid>
		<description><![CDATA[When developing a WordPress theme, it&#8217;s helpful to know a specific page&#8217;s ID number at times.
For instance, I&#8217;m working on a site now where I want to display some pages in the sidebar, but not all, so I use the template tag &#8220;wp list pages&#8221; and the parameter &#8220;exclude.&#8221; 
Here&#8217;s how the code looks:
&#60;?php wp_list_pages(&#8216;title_li=&#038;exclude=PAGE_ID&#8217;); [...]]]></description>
			<content:encoded><![CDATA[<p>When developing a WordPress theme, it&#8217;s helpful to know a specific page&#8217;s ID number at times.</p>
<p>For instance, I&#8217;m working on a site now where I want to display some pages in the sidebar, but not all, so I use the template tag &#8220;wp list pages&#8221; and the parameter &#8220;exclude.&#8221; </p>
<p>Here&#8217;s how the code looks:<br />
<code><span class="php-delimiter">&lt;?php</span> <span class="php-function-call">wp_list_pages</span>(<span class="php-string">&lsquo;title_li=&#038;exclude=PAGE_ID&rsquo;</span>);<span class="php-delimiter"> ?&gt;</span></code></p>
<p>Problem is, I don&#8217;t know the page IDs and it&#8217;s not listed anywhere in Pages > Edit. However if you choose a specific page to edit, the URL in the navigation bar will end in &#8220;post=PAGE_ID&#8221;.</p>
<p>If you need multiple page IDs, go to Pages > Edit. The URL that titles point to ends in the page ID. In Firefox you can just hover over the link and look in the status bar at the bottom of the screen.</p>
<p>My code ended up looking like this:<br />
<code><span class="php-delimiter">&lt;?php</span> <span class="php-function-call">wp_list_pages</span>(<span class="php-string">&lsquo;title_li=&#038;exclude=2, 308, 310, 312&rsquo;</span>);<span class="php-delimiter"> ?&gt;</span></code></p>
]]></content:encoded>
			<wfw:commentRss>http://curtisblackwell.com/finding-the-page-id-numbers-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
