<?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: Easy navigation menus in WordPress</title>
	<atom:link href="http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:19:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: zsiswick</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-239665</link>
		<dc:creator>zsiswick</dc:creator>
		<pubDate>Thu, 21 Oct 2010 06:22:22 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-239665</guid>
		<description>Regarding the current_page_item class issue not working for some people, I came up with a fairly rough way of handling it in jQuery:

&lt;pre&gt;&lt;code&gt;function getHost() {    var url = window.location.href;    var nohttp = url.split(&#039;//&#039;)[1];    var hostPort = nohttp.split(&#039;/&#039;)[0];    return url;}jQuery(document).ready(function() {	var theURL = getHost();	jQuery(&quot;div#page-nav li.page_item a&quot;).each(function(){		if ( jQuery(this).attr(&quot;href&quot;) === theURL ){			jQuery(this).parent().addClass(&quot;current_page_item&quot;);				}	});});&lt;/code&gt;&lt;/pre&gt;

Essentially what this is doing is getting the current URL and comparing the string to an unordered list of links, if the href matches it assigns the current_page_item to the parent 

Obviously the script could be enhanced to handle slight differences in the URL, but it does work if they match exactly.</description>
		<content:encoded><![CDATA[<p>Regarding the current_page_item class issue not working for some people, I came up with a fairly rough way of handling it in jQuery:</p>
<pre><code>function getHost() {    var url = window.location.href;    var nohttp = url.split('//')[1];    var hostPort = nohttp.split('/')[0];    return url;}jQuery(document).ready(function() {	var theURL = getHost();	jQuery(&quot;div#page-nav li.page_item a&quot;).each(function(){		if ( jQuery(this).attr(&quot;href&quot;) === theURL ){			jQuery(this).parent().addClass(&quot;current_page_item&quot;);				}	});});</code></pre>
<p>Essentially what this is doing is getting the current URL and comparing the string to an unordered list of links, if the href matches it assigns the current_page_item to the parent </p>
<p>Obviously the script could be enhanced to handle slight differences in the URL, but it does work if they match exactly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hayes Carter</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-188649</link>
		<dc:creator>Hayes Carter</dc:creator>
		<pubDate>Mon, 03 May 2010 14:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-188649</guid>
		<description>thanks alot for this amazing tutorial, just what I was looking for :)</description>
		<content:encoded><![CDATA[<p>thanks alot for this amazing tutorial, just what I was looking for <img src='http://justintadlock.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josephine</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-158687</link>
		<dc:creator>josephine</dc:creator>
		<pubDate>Sat, 24 Oct 2009 13:28:46 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-158687</guid>
		<description>thank you for this tutorial and it is really useful to us in wordpress community.</description>
		<content:encoded><![CDATA[<p>thank you for this tutorial and it is really useful to us in wordpress community.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: evden eve nakliyat ve depolama</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-157709</link>
		<dc:creator>evden eve nakliyat ve depolama</dc:creator>
		<pubDate>Sat, 17 Oct 2009 19:58:54 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-157709</guid>
		<description>indeed, it is pretty flexible. the only menu call I need is wp_list_pages() and I can insert links to categories, external sites,</description>
		<content:encoded><![CDATA[<p>indeed, it is pretty flexible. the only menu call I need is wp_list_pages() and I can insert links to categories, external sites,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-10-01 &#124; Digitalistic - Mashup or die trying</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-155257</link>
		<dc:creator>links for 2009-10-01 &#124; Digitalistic - Mashup or die trying</dc:creator>
		<pubDate>Thu, 01 Oct 2009 14:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-155257</guid>
		<description>[...] Using WordPress bookmarks (links) to create a navigation menu (tags: wordpress navigation menu bookmarks wp_page_menu wp) [...]</description>
		<content:encoded><![CDATA[<p>[...] Using WordPress bookmarks (links) to create a navigation menu (tags: wordpress navigation menu bookmarks wp_page_menu wp) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-149885</link>
		<dc:creator>Phil</dc:creator>
		<pubDate>Mon, 31 Aug 2009 21:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-149885</guid>
		<description>Hi Justin,

Great info! Is there  a way to add this to the existing page menu, so that the bookmarked links will be added to navigation, yet IN ADDITION to existing items? Right now, my existing pages are taken off the menu... 

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Justin,</p>
<p>Great info! Is there  a way to add this to the existing page menu, so that the bookmarked links will be added to navigation, yet IN ADDITION to existing items? Right now, my existing pages are taken off the menu&#8230; </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-145715</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 07 Aug 2009 08:27:27 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-145715</guid>
		<description>For anyone having trouble, make sure to make the changes recommended by Ryan in his comment from June 17 (http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-133507)

Justin, it would be great if you would update the original posting with those changes.

I didn&#039;t want to use the ratings to arrange sort my links, so I used the notes field instead, changing Ryan&#039;s line

&#039;$bkmrkqry = &#039;orderby=rating&amp;category=&#039;.$cat_id;&#039;

with 

$bkmrkqry = &#039;orderby=notes&amp;category=&#039;.$cat_id;

Add a 0 in the Notes field of the link you want first, a 20 in the Notes for the link you want last, and some other number for each link in-between. Even though I only have ~9 links, I find it faster to re-arrange them this way, as you don&#039;t have to shuffle them around.</description>
		<content:encoded><![CDATA[<p>For anyone having trouble, make sure to make the changes recommended by Ryan in his comment from June 17 (<a href="http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-133507" rel="nofollow">http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-133507</a>)</p>
<p>Justin, it would be great if you would update the original posting with those changes.</p>
<p>I didn&#8217;t want to use the ratings to arrange sort my links, so I used the notes field instead, changing Ryan&#8217;s line</p>
<p>&#8216;$bkmrkqry = &#8216;orderby=rating&amp;category=&#8217;.$cat_id;&#8217;</p>
<p>with </p>
<p>$bkmrkqry = &#8216;orderby=notes&amp;category=&#8217;.$cat_id;</p>
<p>Add a 0 in the Notes field of the link you want first, a 20 in the Notes for the link you want last, and some other number for each link in-between. Even though I only have ~9 links, I find it faster to re-arrange them this way, as you don&#8217;t have to shuffle them around.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Removing Pages From Navigation in WordPress &#124; Es Developed - Fresh Website and Graphic Design</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-144871</link>
		<dc:creator>Removing Pages From Navigation in WordPress &#124; Es Developed - Fresh Website and Graphic Design</dc:creator>
		<pubDate>Mon, 03 Aug 2009 14:54:41 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-144871</guid>
		<description>[...] Justin Tadlock offers an interesting take on using links (blogroll/bookmarks) to create navigation. [...]</description>
		<content:encoded><![CDATA[<p>[...] Justin Tadlock offers an interesting take on using links (blogroll/bookmarks) to create navigation. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-138743</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 10 Jul 2009 06:25:21 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-138743</guid>
		<description>Thanks Kristarella, and sorry for spamming the comments Justin. OK, here&#039;s my code (hopefully):

&lt;pre&gt;&lt;code&gt;&lt;ul class=&quot;bookmarks xoxo&quot;&gt;
    &lt;li class=&quot;page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Thanks Kristarella, and sorry for spamming the comments Justin. OK, here&#8217;s my code (hopefully):</p>
<pre><code>&lt;ul class=&quot;bookmarks xoxo&quot;&gt;
    &lt;li class=&quot;page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
    &lt;li class=&quot;page_item current_page_item current_page_item current_page_item current_page_item current_page_item&quot;&gt;&lt;a href=&quot;#&quot; title=&quot;&quot; rel=&quot;&quot;&gt;Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: kristarella</title>
		<link>http://justintadlock.com/archives/2009/01/06/easy-navigation-menus-in-wordpress#comment-138732</link>
		<dc:creator>kristarella</dc:creator>
		<pubDate>Fri, 10 Jul 2009 05:18:34 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/?p=1351#comment-138732</guid>
		<description>Dave, you need to &lt;a href=&quot;http://www.htmlescape.net/htmlescape_tool.html&quot; rel=&quot;nofollow&quot;&gt;escape&lt;/a&gt; any HTML.</description>
		<content:encoded><![CDATA[<p>Dave, you need to <a href="http://www.htmlescape.net/htmlescape_tool.html" rel="nofollow">escape</a> any HTML.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

