<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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>Comments on: Display Always All Subpages in Sidebar</title>
	<atom:link href="http://wpengineer.com/1942/display-always-subpages-in-sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Wed, 08 Feb 2012 19:48:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Richard</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-6560</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Fri, 18 Feb 2011 00:21:58 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-6560</guid>
		<description>Hello Again

I have been thinking about it and it may also be beneficial to show siblings of the child I am on.

any chance you can help me work that out too?

thanks

Richard</description>
		<content:encoded><![CDATA[<p>Hello Again</p>
<p>I have been thinking about it and it may also be beneficial to show siblings of the child I am on.</p>
<p>any chance you can help me work that out too?</p>
<p>thanks</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-6558</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Thu, 17 Feb 2011 23:16:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-6558</guid>
		<description>Hi There

I am currently building a wordpress CMS.

This tutorial is very good and almost does exactly as I need it to...

...The next question from me would be:

I needed to just show the children of the page I am on in the side bar, but just the immediate children, not the children of the sub pages too.

Is there any way to show the immediate children of the page you are on? I tried to implement &#039;depth=1&#039; but I could not get it to work:
&lt;code&gt;
&lt;?php wp_list_pages(&#039;child_of=&#039;.get_the_ID(&#039;depth=1&#039;).&#039;&amp;title_li=&#039;.__(&#039;Next Steps&#039;).&#039;&#039;); ?&gt;&lt;/code&gt;

Any chance you can help with this at all? I have been asking Google all morning, but so far it has come up short :-)

I look forward to your response :-)</description>
		<content:encoded><![CDATA[<p>Hi There</p>
<p>I am currently building a wordpress CMS.</p>
<p>This tutorial is very good and almost does exactly as I need it to...</p>
<p>...The next question from me would be:</p>
<p>I needed to just show the children of the page I am on in the side bar, but just the immediate children, not the children of the sub pages too.</p>
<p>Is there any way to show the immediate children of the page you are on? I tried to implement 'depth=1' but I could not get it to work:<br />
<code><br />
&lt;?php wp_list_pages(&#039;child_of=&#039;.get_the_ID(&#039;depth=1&#039;).&#039;&amp;title_li='.__('Next Steps').''); ?&gt;</code></p>
<p>Any chance you can help with this at all? I have been asking Google all morning, but so far it has come up short <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I look forward to your response <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adal Design</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3411</link>
		<dc:creator>Adal Design</dc:creator>
		<pubDate>Thu, 04 Feb 2010 19:36:56 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3411</guid>
		<description>Clean and well written. Thanks for showing me how to to do that :-)</description>
		<content:encoded><![CDATA[<p>Clean and well written. Thanks for showing me how to to do that <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Noname</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3234</link>
		<dc:creator>Noname</dc:creator>
		<pubDate>Fri, 08 Jan 2010 19:33:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3234</guid>
		<description>I always got different need
1. if page got subpages, show subpages (1 level)
2. if not, but has parrent, show siblings
3. if not, show something different (in that case i&#039;am on the top page, so showing the top menu on sidebar is not a good idea, as top menu is typicaly also somewhere else
So I got 3 wdigets and widget rules plugin

For hierarchical menu it is far more difficult and i had to solve it with very complex wp_list_pages filters - i do not want to hide the non-current pages with css and i want to show only one level of subpages and only my direct ascendants + my siblings - i thinkt this is the most natural need which solve the complexity problems. But doing this is pain in the ass</description>
		<content:encoded><![CDATA[<p>I always got different need<br />
1. if page got subpages, show subpages (1 level)<br />
2. if not, but has parrent, show siblings<br />
3. if not, show something different (in that case i'am on the top page, so showing the top menu on sidebar is not a good idea, as top menu is typicaly also somewhere else<br />
So I got 3 wdigets and widget rules plugin</p>
<p>For hierarchical menu it is far more difficult and i had to solve it with very complex wp_list_pages filters - i do not want to hide the non-current pages with css and i want to show only one level of subpages and only my direct ascendants + my siblings - i thinkt this is the most natural need which solve the complexity problems. But doing this is pain in the ass</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Subpagina&#8217;s samen met hoofdpagina&#8217;s tonen in sidebar &#124; WordPress Dimensie</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3201</link>
		<dc:creator>Subpagina&#8217;s samen met hoofdpagina&#8217;s tonen in sidebar &#124; WordPress Dimensie</dc:creator>
		<pubDate>Tue, 05 Jan 2010 09:57:58 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3201</guid>
		<description>[...] WP Engineer publiceerde vandaag een fijne hack om dit op te lossen. Important for us are 2 things: the top page is always at the end of the array and it can return an empty array. So we just go to the end of the array and for the case that there is no parent page, we display all the subpages of this page. We write a function in our functions.php because it is easier to maintain, and may also be used in several sidebars. [...]</description>
		<content:encoded><![CDATA[<p>[...] WP Engineer publiceerde vandaag een fijne hack om dit op te lossen. Important for us are 2 things: the top page is always at the end of the array and it can return an empty array. So we just go to the end of the array and for the case that there is no parent page, we display all the subpages of this page. We write a function in our functions.php because it is easier to maintain, and may also be used in several sidebars. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3188</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Mon, 04 Jan 2010 17:57:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3188</guid>
		<description>@matt: Thanks for the tip. Post updated.</description>
		<content:encoded><![CDATA[<p>@matt: Thanks for the tip. Post updated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt mcinvale</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3187</link>
		<dc:creator>matt mcinvale</dc:creator>
		<pubDate>Mon, 04 Jan 2010 16:22:53 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3187</guid>
		<description>Why not use end() on the ancestors array? Then you don&#039;t have to call get_post_ancestors() and hit the database again for info you should already have.</description>
		<content:encoded><![CDATA[<p>Why not use end() on the ancestors array? Then you don't have to call get_post_ancestors() and hit the database again for info you should already have.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Denzel Chia</title>
		<link>http://wpengineer.com/1942/display-always-subpages-in-sidebar/#comment-3185</link>
		<dc:creator>Denzel Chia</dc:creator>
		<pubDate>Mon, 04 Jan 2010 08:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1942#comment-3185</guid>
		<description>Thanks for showing how to use WordPress Functions to always list all Subpages.

I did not know about get_post_ancestors function, I used to code my own function with multiple database queries to check for page ancestors, which is not very efficient.

Now I can easily achieve this by using your tutorial examples! And the codes are efficient, short and neat too!

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks for showing how to use WordPress Functions to always list all Subpages.</p>
<p>I did not know about get_post_ancestors function, I used to code my own function with multiple database queries to check for page ancestors, which is not very efficient.</p>
<p>Now I can easily achieve this by using your tutorial examples! And the codes are efficient, short and neat too!</p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

