<?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: Adding a CSS Class to the the Last LI Generated by wp_nav_menu()</title>
	<atom:link href="http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/</link>
	<description>PHP Web Developer</description>
	<lastBuildDate>Tue, 22 Nov 2011 22:15:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Cody Rapley</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-149</link>
		<dc:creator>Cody Rapley</dc:creator>
		<pubDate>Wed, 24 Aug 2011 02:21:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-149</guid>
		<description>Thanks John, worked great, much more reliable than using :last-child pseudo class.</description>
		<content:encoded><![CDATA[<p>Thanks John, worked great, much more reliable than using :last-child pseudo class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-141</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 07 Jun 2011 08:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-141</guid>
		<description>Hi Konstantin, Yes it is clean code, nice work. 

Although it could get called quite a few times in an execution, not that this would be an issue with most WP builds.</description>
		<content:encoded><![CDATA[<p>Hi Konstantin, Yes it is clean code, nice work. </p>
<p>Although it could get called quite a few times in an execution, not that this would be an issue with most WP builds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Konstantin</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-140</link>
		<dc:creator>Konstantin</dc:creator>
		<pubDate>Tue, 07 Jun 2011 07:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-140</guid>
		<description>Wouldn&#039;t you agree, that this is much cleaner:
&lt;code&gt;
function add_last_item_class( $items ) {
	$items[count($items)]-&gt;classes[] = &#039;last&#039;;
	return $items;
}
add_filter( &#039;wp_nav_menu_objects&#039;, &#039;add_last_item_class&#039; );
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Wouldn&#8217;t you agree, that this is much cleaner:<br />
<code><br />
function add_last_item_class( $items ) {<br />
	$items[count($items)]-&gt;classes[] = 'last';<br />
	return $items;<br />
}<br />
add_filter( 'wp_nav_menu_objects', 'add_last_item_class' );<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress Web Design</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-138</link>
		<dc:creator>Wordpress Web Design</dc:creator>
		<pubDate>Thu, 26 May 2011 06:49:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-138</guid>
		<description>I am always searching online for articles that can help me educate myself. Looking forward to another great post. Thanks</description>
		<content:encoded><![CDATA[<p>I am always searching online for articles that can help me educate myself. Looking forward to another great post. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Huroman</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-136</link>
		<dc:creator>Huroman</dc:creator>
		<pubDate>Thu, 21 Apr 2011 08:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-136</guid>
		<description>Great post but i use the solution of @Pawiksd and, for me, is faster and easier.

Anyway, good tips.</description>
		<content:encoded><![CDATA[<p>Great post but i use the solution of @Pawiksd and, for me, is faster and easier.</p>
<p>Anyway, good tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cosmin.</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-135</link>
		<dc:creator>Cosmin.</dc:creator>
		<pubDate>Wed, 13 Apr 2011 16:40:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-135</guid>
		<description>@Pawiksd
Not all versions of Internet explorer support child selectors.</description>
		<content:encoded><![CDATA[<p>@Pawiksd<br />
Not all versions of Internet explorer support child selectors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pawiksd</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-133</link>
		<dc:creator>Pawiksd</dc:creator>
		<pubDate>Wed, 16 Mar 2011 21:01:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-133</guid>
		<description>Great work:) 

I&#039;m using CSS to do that trick.

.menu li:first-child{
...
}
.menu li:last-child{
...
}

best regards</description>
		<content:encoded><![CDATA[<p>Great work:) </p>
<p>I&#8217;m using CSS to do that trick.</p>
<p>.menu li:first-child{<br />
&#8230;<br />
}<br />
.menu li:last-child{<br />
&#8230;<br />
}</p>
<p>best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DaChin</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-128</link>
		<dc:creator>DaChin</dc:creator>
		<pubDate>Thu, 30 Sep 2010 05:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-128</guid>
		<description>I&#039;m not using English as my major language, but all I can say is &quot;Great Post&quot; !!!</description>
		<content:encoded><![CDATA[<p>I&#8217;m not using English as my major language, but all I can say is &#8220;Great Post&#8221; !!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-127</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Wed, 29 Sep 2010 15:28:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-127</guid>
		<description>Hi just to say I sorted my problem.. I didn&#039;t realise in WP 3 you can assign your own class to any menu item form the &#039;screen options&#039; when in the menu page in the backend. (sweet!)</description>
		<content:encoded><![CDATA[<p>Hi just to say I sorted my problem.. I didn&#8217;t realise in WP 3 you can assign your own class to any menu item form the &#8216;screen options&#8217; when in the menu page in the backend. (sweet!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Will</title>
		<link>http://www.johnthedeveloper.co.uk/tutorials/adding-class-li-generated-wpnavmenu/comment-page-1/#comment-126</link>
		<dc:creator>Will</dc:creator>
		<pubDate>Wed, 29 Sep 2010 14:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnthedeveloper.co.uk/?p=286#comment-126</guid>
		<description>Hi, really useful script, however I&#039;m now needing it to apply an inline style to the class=&#039;&#039; and not to the id att which your script seems to do.. any ideas? thanks.</description>
		<content:encoded><![CDATA[<p>Hi, really useful script, however I&#8217;m now needing it to apply an inline style to the class=&#8221; and not to the id att which your script seems to do.. any ideas? thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

