<?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: WordPress as a CMS&#8230; Advanced Navigation</title>
	<atom:link href="http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/feed/" rel="self" type="application/rss+xml" />
	<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/</link>
	<description>Hacking Education and Technology</description>
	<lastBuildDate>Mon, 21 Nov 2011 21:18:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Nick</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-7455</link>
		<dc:creator>Nick</dc:creator>
		<pubDate>Mon, 21 Nov 2011 21:18:19 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-7455</guid>
		<description>Wow, wish this was built into wordpress, excellent solution, thanks!</description>
		<content:encoded><![CDATA[<p>Wow, wish this was built into wordpress, excellent solution, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Schulke</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-1071</link>
		<dc:creator>Jacob Schulke</dc:creator>
		<pubDate>Wed, 19 May 2010 16:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-1071</guid>
		<description>Thank you so much. This is the most helpful wordpress CMS navigation solution I have found.</description>
		<content:encoded><![CDATA[<p>Thank you so much. This is the most helpful wordpress CMS navigation solution I have found.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Malan</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-115</link>
		<dc:creator>Andre Malan</dc:creator>
		<pubDate>Thu, 09 Jul 2009 16:56:44 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-115</guid>
		<description>Glad that it helped.</description>
		<content:encoded><![CDATA[<p>Glad that it helped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cazerin</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-114</link>
		<dc:creator>cazerin</dc:creator>
		<pubDate>Thu, 09 Jul 2009 16:09:48 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-114</guid>
		<description>this helped like you wouldn&#039;t belieeeeve</description>
		<content:encoded><![CDATA[<p>this helped like you wouldn&#8217;t belieeeeve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Goldman</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-113</link>
		<dc:creator>Jake Goldman</dc:creator>
		<pubDate>Wed, 01 Apr 2009 18:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-113</guid>
		<description>We just released a plugin that makes adding this kind of navigation very easy:

http://www.cmurrayconsulting.com/software/wordpress-simple-section-navigation/

Would love feedback!</description>
		<content:encoded><![CDATA[<p>We just released a plugin that makes adding this kind of navigation very easy:</p>
<p><a href="http://www.cmurrayconsulting.com/software/wordpress-simple-section-navigation/" rel="nofollow">http://www.cmurrayconsulting.com/software/wordpress-simple-section-navigation/</a></p>
<p>Would love feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Malan</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-109</link>
		<dc:creator>Andre Malan</dc:creator>
		<pubDate>Fri, 05 Sep 2008 23:14:01 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-109</guid>
		<description>Code updated and simplified a bit based on Andrea&#039;s feedback.</description>
		<content:encoded><![CDATA[<p>Code updated and simplified a bit based on Andrea&#8217;s feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre Malan</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-112</link>
		<dc:creator>Andre Malan</dc:creator>
		<pubDate>Fri, 22 Aug 2008 17:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-112</guid>
		<description>Hey Andrea,

I don&#039;t see it in the snippet that you posted, did you include the first line &quot;$thisPage = $wp_query-&gt;post;&quot;?</description>
		<content:encoded><![CDATA[<p>Hey Andrea,</p>
<p>I don&#8217;t see it in the snippet that you posted, did you include the first line &#8220;$thisPage = $wp_query-&gt;post;&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-111</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Fri, 22 Aug 2008 15:56:37 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-111</guid>
		<description>I hate to floor your comments with this problem, I&#039;d email you if I could...

OK, I&#039;ve got the pages rendering again (some small copy/paste find/replace bits I didn&#039;t catch the second or third time around), but I&#039;m still having a problem.

I have the same setup as the example: main page nav at the top, 2nd and 3rd level nav in the sidebar.  Everything looks as it should on a main page (save for some pesky bullets I need to get rid of), but if I go to a second or third level page, I get *everything* in the navigation tree, all pages, child pages, and grandchild pages.

This is what the code looks like:

&lt;code&gt;
post;
$secondAncestor = count($thisPage-&gt;ancestors)-1; //figure out what level of navigation we are on, subtract one because we don&#039;t want to consider the top-level
if($thisPage-&gt;post_parent!=0) //if the page is not a top-level category
	{
	//the following lists children of second level ancestor of the current page
	wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$thisPage-&gt;ancestors[$secondAncestor].&quot;&amp;sort_column=menu_order&amp;echo=1&quot;);
	}
else //if the page is a top-level category
	{
	//listing only the child pages of the current section
	$children= wp_list_pages(&quot;title_li=&amp;child_of=&quot;.$thisPage-&gt;ID.&quot;&amp;sort_column=menu_order&amp;echo=0&quot;);
	if($children) //this will stop it from displaying a section heading if there are no elements in the section (for example on the home page)
		{
		echo $children;
		}
	}
?&gt;
&lt;/code&gt;

Any idea what the weirdness might be?</description>
		<content:encoded><![CDATA[<p>I hate to floor your comments with this problem, I&#8217;d email you if I could&#8230;</p>
<p>OK, I&#8217;ve got the pages rendering again (some small copy/paste find/replace bits I didn&#8217;t catch the second or third time around), but I&#8217;m still having a problem.</p>
<p>I have the same setup as the example: main page nav at the top, 2nd and 3rd level nav in the sidebar.  Everything looks as it should on a main page (save for some pesky bullets I need to get rid of), but if I go to a second or third level page, I get *everything* in the navigation tree, all pages, child pages, and grandchild pages.</p>
<p>This is what the code looks like:</p>
<p><code><br />
post;<br />
$secondAncestor = count($thisPage-&gt;ancestors)-1; //figure out what level of navigation we are on, subtract one because we don't want to consider the top-level<br />
if($thisPage-&gt;post_parent!=0) //if the page is not a top-level category<br />
	{<br />
	//the following lists children of second level ancestor of the current page<br />
	wp_list_pages("title_li=&amp;child_of=".$thisPage-&gt;ancestors[$secondAncestor]."&amp;sort_column=menu_order&amp;echo=1");<br />
	}<br />
else //if the page is a top-level category<br />
	{<br />
	//listing only the child pages of the current section<br />
	$children= wp_list_pages("title_li=&amp;child_of=".$thisPage-&gt;ID."&amp;sort_column=menu_order&amp;echo=0");<br />
	if($children) //this will stop it from displaying a section heading if there are no elements in the section (for example on the home page)<br />
		{<br />
		echo $children;<br />
		}<br />
	}<br />
?&gt;<br />
</code></p>
<p>Any idea what the weirdness might be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-110</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Fri, 22 Aug 2008 14:54:04 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-110</guid>
		<description>I&#039;ve been tearing my hair out desperately trying to do (on a deadline) exactly what you&#039;ve accomplished in the example: first level nav recognition that sticks when you get to the third level page.

However, when I tried to use the code you posted in my sidebar.php, the page doesn&#039;t render at all.  I tried it exactly as-is, then removed references to styles to make sure it wasn&#039;t getting confused, but still nothing. There seemed to be a &quot;echo ‘’;&quot; missing from that last chunk of code, but other than that, I don&#039;t know what&#039;s wrong with it.

Am i putting this code in the right place?  I&#039;m using the Cleaker theme, if that matters at all...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been tearing my hair out desperately trying to do (on a deadline) exactly what you&#8217;ve accomplished in the example: first level nav recognition that sticks when you get to the third level page.</p>
<p>However, when I tried to use the code you posted in my sidebar.php, the page doesn&#8217;t render at all.  I tried it exactly as-is, then removed references to styles to make sure it wasn&#8217;t getting confused, but still nothing. There seemed to be a &#8220;echo ‘’;&#8221; missing from that last chunk of code, but other than that, I don&#8217;t know what&#8217;s wrong with it.</p>
<p>Am i putting this code in the right place?  I&#8217;m using the Cleaker theme, if that matters at all&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jared Stein</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-106</link>
		<dc:creator>Jared Stein</dc:creator>
		<pubDate>Mon, 04 Aug 2008 15:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-106</guid>
		<description>We just started using WP as a CMS for our TTIX.org conference site last year, and have major plans for expansion this year.  WP is a perfect marriage of easy expandability of features and user administration.</description>
		<content:encoded><![CDATA[<p>We just started using WP as a CMS for our TTIX.org conference site last year, and have major plans for expansion this year.  WP is a perfect marriage of easy expandability of features and user administration.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-108</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 03 Aug 2008 03:17:47 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-108</guid>
		<description>Thanks to cats (or is it dogs?) like you and Alan a prima donna like me never has to get his feet muddy in the code.  This is amazing Andre, and you have no idea how excited I am to find out what you have been up to.  For making WPMu an effective and functional CMS could have some major impact here at UMW, and for the faculty and student more broadly.  Thanks for sharing :)</description>
		<content:encoded><![CDATA[<p>Thanks to cats (or is it dogs?) like you and Alan a prima donna like me never has to get his feet muddy in the code.  This is amazing Andre, and you have no idea how excited I am to find out what you have been up to.  For making WPMu an effective and functional CMS could have some major impact here at UMW, and for the faculty and student more broadly.  Thanks for sharing <img src='http://andremalan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Rush</title>
		<link>http://andremalan.net/blog/2008/08/02/wordpress-as-a-cms-advanced-navigation/comment-page-1/#comment-107</link>
		<dc:creator>Andy Rush</dc:creator>
		<pubDate>Sun, 03 Aug 2008 02:22:25 +0000</pubDate>
		<guid isPermaLink="false">http://andremalan.net/?p=69#comment-107</guid>
		<description>I don&#039;t think we here at UMW have to tell you how much we anticipate your updates on this. Go Andre, Go!</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think we here at UMW have to tell you how much we anticipate your updates on this. Go Andre, Go!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.751 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-11-21 20:09:29 -->

