<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: wp_list_pages Active State</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: wp_list_pages Active State</description>
<language>en</language>
<pubDate>Tue, 24 Nov 2009 05:03:38 +0000</pubDate>

<item>
<title>danpoynor on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-975035</link>
<pubDate>Wed, 04 Feb 2009 00:43:53 +0000</pubDate>
<dc:creator>danpoynor</dc:creator>
<guid isPermaLink="false">975035@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Anybody know if this is suppose to be fixed?&#60;/p&#62;
&#60;p&#62;I think I'm experiencing the same problem with a fresh install.
&#60;/p&#62;</description>
</item>
<item>
<title>jhames on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-930171</link>
<pubDate>Thu, 18 Dec 2008 20:17:25 +0000</pubDate>
<dc:creator>jhames</dc:creator>
<guid isPermaLink="false">930171@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I would love to know how you fixed this issue, floodlightdesign. I am using &#60;code&#62;&#38;lt;div class=&#38;quot;tabs&#38;quot;&#38;gt;&#38;lt;ul&#38;gt;&#38;lt;?php wp_list_pages(&#38;#39;title_li=&#38;#39; ); ?&#38;gt;&#38;lt;/ul&#38;gt;&#38;lt;/div&#38;gt;&#60;/code&#62; in header.php and I am getting &#60;code&#62;current_page_item&#60;/code&#62; to appear in the category-tabbed navigation. But I can't get &#60;code&#62;current_page_parent&#60;/code&#62; to appear when I click a post related to a category tab.&#60;/p&#62;
&#60;p&#62;I installed WP 2.7 RC 3 this morning, btw.
&#60;/p&#62;</description>
</item>
<item>
<title>moshu on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-905060</link>
<pubDate>Fri, 21 Nov 2008 21:55:13 +0000</pubDate>
<dc:creator>moshu</dc:creator>
<guid isPermaLink="false">905060@http://wordpress.org/support/</guid>
<description>&#60;p&#62;You posted your version as 2.6.&#60;br /&#62;
You shouldn't use alpha/beta on production sites...&#60;br /&#62;
There is trac, there a mailing lists (testers, hackers) - get involved if you like testing.&#60;br /&#62;
&#60;a href=&#34;http://trac.wordpress.org/&#34; rel=&#34;nofollow&#34;&#62;http://trac.wordpress.org/&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://lists.automattic.com/mailman/listinfo/&#34; rel=&#34;nofollow&#34;&#62;http://lists.automattic.com/mailman/listinfo/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>floodlightdesign on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-905057</link>
<pubDate>Fri, 21 Nov 2008 21:52:32 +0000</pubDate>
<dc:creator>floodlightdesign</dc:creator>
<guid isPermaLink="false">905057@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Okay, I figured it out.&#60;/p&#62;
&#60;p&#62;Its the &#60;strong&#62;Walker&#60;/strong&#62; changes that were made in the 2.7 Beta 3 release that break this functionality.&#60;/p&#62;
&#60;p&#62;If you replace the classes.php file in v2.7B3 with the classes.php file in v2.7B2 the current_page_item class shows up again.&#60;/p&#62;
&#60;p&#62;I really do think this is a bug....can we report it some how?&#60;/p&#62;
&#60;p&#62;Joe
&#60;/p&#62;</description>
</item>
<item>
<title>floodlightdesign on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-905022</link>
<pubDate>Fri, 21 Nov 2008 21:12:25 +0000</pubDate>
<dc:creator>floodlightdesign</dc:creator>
<guid isPermaLink="false">905022@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Well, look at that....it works perfectly on your site.&#60;/p&#62;
&#60;p&#62;So strange that mine doesn't work....I even striped my nav function to&#60;/p&#62;
&#60;p&#62;&#38;lt;?php wp_list_pages(&#34;title_li=&#34;); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;Still no current_page_item added to the current page.&#60;/p&#62;
&#60;p&#62;I'm confused.&#60;/p&#62;
&#60;p&#62;Joe
&#60;/p&#62;</description>
</item>
<item>
<title>moshu on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-904979</link>
<pubDate>Fri, 21 Nov 2008 20:35:59 +0000</pubDate>
<dc:creator>moshu</dc:creator>
<guid isPermaLink="false">904979@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I don't use the code you posted. But for a plain wp_list_pages the &#34;current_page_item&#34; is always added. Even on my blog.
&#60;/p&#62;</description>
</item>
<item>
<title>floodlightdesign on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-904975</link>
<pubDate>Fri, 21 Nov 2008 20:32:27 +0000</pubDate>
<dc:creator>floodlightdesign</dc:creator>
<guid isPermaLink="false">904975@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Who's site is it working on?  Can you post a link?&#60;/p&#62;
&#60;p&#62;I've never seen this functioning correctly on a wordpress site.&#60;/p&#62;
&#60;p&#62;Joe
&#60;/p&#62;</description>
</item>
<item>
<title>moshu on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-904945</link>
<pubDate>Fri, 21 Nov 2008 19:50:41 +0000</pubDate>
<dc:creator>moshu</dc:creator>
<guid isPermaLink="false">904945@http://wordpress.org/support/</guid>
<description>&#60;p&#62;But for others it works.&#60;br /&#62;
We always get the &#34;current_page_item&#34; class.&#60;/p&#62;
&#60;p&#62;Moving to Advanced won't change anything.
&#60;/p&#62;</description>
</item>
<item>
<title>floodlightdesign on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-904939</link>
<pubDate>Fri, 21 Nov 2008 19:45:29 +0000</pubDate>
<dc:creator>floodlightdesign</dc:creator>
<guid isPermaLink="false">904939@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Okay so I figured out a little more.&#60;/p&#62;
&#60;p&#62;The wp_list_pages function calls the walk_page_tree function which uses the Walker_Page class.  That class is where the CSS classes get set. There is a $current_page variable that is being passed to that class that is returning a NULL value no matter what page you are on.  This is the problem.&#60;/p&#62;
&#60;p&#62;Can someone move this post to the Advanced category??  I want to get this fixed so others can use this active page functionality.&#60;/p&#62;
&#60;p&#62;Thanks.&#60;br /&#62;
Joe
&#60;/p&#62;</description>
</item>
<item>
<title>floodlightdesign on "wp_list_pages Active State"</title>
<link>http://wordpress.org/support/topic/219321#post-904781</link>
<pubDate>Fri, 21 Nov 2008 16:45:37 +0000</pubDate>
<dc:creator>floodlightdesign</dc:creator>
<guid isPermaLink="false">904781@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I need to style a navigation list generated by wp_list_pages using css.  There will be multiple top level pages and multiple subnav pages.  &#60;/p&#62;
&#60;p&#62;For some reason when I use this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php

global $post; 

if (is_page() &#38;#38;&#38;#38; $post-&#38;gt;post_parent ) {
	// This is a subpage
 wp_list_pages(&#38;quot;title_li=&#38;#38;link_before=&#38;lt;h3&#38;gt;&#38;#38;link_after=&#38;lt;/h3&#38;gt;&#38;#38;include=&#38;quot;.$post-&#38;gt;post_parent);
 wp_list_pages(&#38;quot;title_li=&#38;#38;link_before=&#38;lt;h4&#38;gt;&#38;#38;link_after=&#38;lt;/h4&#38;gt;&#38;#38;child_of=&#38;quot;.$post-&#38;gt;post_parent);

} else {
	// This is not a subpage
  wp_list_pages(&#38;quot;title_li=&#38;#38;link_before=&#38;lt;h3&#38;gt;&#38;#38;link_after=&#38;lt;/h3&#38;gt;&#38;#38;include=&#38;quot;.$post-&#38;gt;ID);
  wp_list_pages(&#38;quot;title_li=&#38;#38;link_before=&#38;lt;h4&#38;gt;&#38;#38;link_after=&#38;lt;/h4&#38;gt;&#38;#38;child_of=&#38;quot;.$post-&#38;gt;ID);
}

?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I am not getting the class added on the li elements when the current page is active.  All I get is li.page_item.  When I click on a SUB-page the &#60;strong&#62;parent's&#60;/strong&#62; class changes to .current_page_ancestor .current_page_parent, but when clicking on the main nav item I get no class change.  I looked into the post-template include file where the function is located, but I don't see how they are creating those active classes.  &#60;/p&#62;
&#60;p&#62;Any ideas about what is going on?&#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Joe
&#60;/p&#62;</description>
</item>

</channel>
</rss>
