<?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/display-always-subpages-in-sidebar/feed/" rel="self" type="application/rss+xml" /><link>http://wpengineer.com/display-always-subpages-in-sidebar/</link> <description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description> <lastBuildDate>Thu, 29 Jul 2010 08:11:47 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=7862</generator> <item><title>By: Adal Design</title><link>http://wpengineer.com/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/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Noname</title><link>http://wpengineer.com/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 pluginFor 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/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/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/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/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>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Database Caching 7/13 queries in 0.031 seconds using disk
Object Caching 293/324 objects using disk

Served from: wpengineer.com @ 2010-07-29 13:23:13 -->