<?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: Upgrade wp_page_menu() to wp_nav_menu()</title>
	<atom:link href="http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/</link>
	<description>It&#039;s WordPress ... anything is possible!</description>
	<lastBuildDate>Tue, 17 Jan 2012 16:15:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: The Doctor</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-6717</link>
		<dc:creator>The Doctor</dc:creator>
		<pubDate>Tue, 20 Dec 2011 12:21:44 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-6717</guid>
		<description>@Ziad - You bring up a good point, in that `wp_page_menu` by itself may not be a good fallback function for `wp_nav_menu` on its own, but it can easily be incorporated into a function that does address the container issue as it is relevant to a specific theme; and, that function can subsequently be used as the callback instead.</description>
		<content:encoded><![CDATA[<p>@Ziad &#8211; You bring up a good point, in that `wp_page_menu` by itself may not be a good fallback function for `wp_nav_menu` on its own, but it can easily be incorporated into a function that does address the container issue as it is relevant to a specific theme; and, that function can subsequently be used as the callback instead.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziad Rahhal</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-6712</link>
		<dc:creator>Ziad Rahhal</dc:creator>
		<pubDate>Tue, 20 Dec 2011 09:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-6712</guid>
		<description>*
from &lt;div&gt; to &lt;nav&gt;  which is missing from my previous comment</description>
		<content:encoded><![CDATA[<p>*<br />
from &lt;div&gt; to &lt;nav&gt;  which is missing from my previous comment</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ziad Rahhal</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-6711</link>
		<dc:creator>Ziad Rahhal</dc:creator>
		<pubDate>Tue, 20 Dec 2011 09:26:11 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-6711</guid>
		<description>You can make wp_page_menu() show &#039;HOME by adding the following code to functions.php within your theme:

&lt;code&gt;
function my_page_menu_args($args) {
	$args[&#039;show_home&#039;] = true;
	return $args;
}
add_filter(&#039;wp_page_menu_args&#039;, &#039;my_page_menu_args&#039;);
&lt;/code&gt;

The problem is that wp_page_menu() does not allow the change of the container element from &lt;div&gt; to &lt;nav&gt; for example. Whereas, wp_nav_menu() does allow the change of the container. So as a fallback, wp_page_menu() might break the CSS styling.

&lt;em&gt;edit: added missing elements as noted. The Doctor&lt;/em&gt;</description>
		<content:encoded><![CDATA[<p>You can make wp_page_menu() show &#8216;HOME by adding the following code to functions.php within your theme:</p>
<p><code><br />
function my_page_menu_args($args) {<br />
	$args['show_home'] = true;<br />
	return $args;<br />
}<br />
add_filter('wp_page_menu_args', 'my_page_menu_args');<br />
</code></p>
<p>The problem is that wp_page_menu() does not allow the change of the container element from &lt;div> to &lt;nav> for example. Whereas, wp_nav_menu() does allow the change of the container. So as a fallback, wp_page_menu() might break the CSS styling.</p>
<p><em>edit: added missing elements as noted. The Doctor</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Doctor</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-4440</link>
		<dc:creator>The Doctor</dc:creator>
		<pubDate>Mon, 03 Oct 2011 22:47:19 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-4440</guid>
		<description>@Steven - Yes, it works quite well, but I was referencing the parameter `show_home` is not used directly by `wp_nav_menu`. Sorry, it was not clearly indicated above.</description>
		<content:encoded><![CDATA[<p>@Steven &#8211; Yes, it works quite well, but I was referencing the parameter `show_home` is not used directly by `wp_nav_menu`. Sorry, it was not clearly indicated above.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Almeroth</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-4439</link>
		<dc:creator>Steven Almeroth</dc:creator>
		<pubDate>Mon, 03 Oct 2011 21:05:40 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-4439</guid>
		<description>&quot;&#039;show_home&#039; =&gt; true&quot; works for me:

&lt;code&gt;wp_nav_menu(array(
    &#039;show_home&#039; =&gt; true,
));&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>&#8220;&#8216;show_home&#8217; =&gt; true&#8221; works for me:</p>
<p><code>wp_nav_menu(array(<br />
    'show_home' =&gt; true,<br />
));</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Doctor</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-2740</link>
		<dc:creator>The Doctor</dc:creator>
		<pubDate>Thu, 10 Feb 2011 01:10:48 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-2740</guid>
		<description>@Devin - What issues are you seeing on your Category template pages?</description>
		<content:encoded><![CDATA[<p>@Devin &#8211; What issues are you seeing on your Category template pages?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devin Walker</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-2732</link>
		<dc:creator>Devin Walker</dc:creator>
		<pubDate>Wed, 09 Feb 2011 01:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-2732</guid>
		<description>Gotta love Custom Menus... I&#039;m running into a problem where they are breaking on category.php pages but they work great toerhwise.</description>
		<content:encoded><![CDATA[<p>Gotta love Custom Menus&#8230; I&#8217;m running into a problem where they are breaking on category.php pages but they work great toerhwise.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Doctor</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-2289</link>
		<dc:creator>The Doctor</dc:creator>
		<pubDate>Fri, 21 Jan 2011 12:26:32 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-2289</guid>
		<description>@chaz - That would depend on your theme. You might start looking in your header.php template file for obvious references to home, then proceed to your functions.php file if necessary.</description>
		<content:encoded><![CDATA[<p>@chaz &#8211; That would depend on your theme. You might start looking in your header.php template file for obvious references to home, then proceed to your functions.php file if necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaz</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-2285</link>
		<dc:creator>chaz</dc:creator>
		<pubDate>Fri, 21 Jan 2011 05:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-2285</guid>
		<description>&quot;You may need to edit your theme to remove the orginal “home” link if one was being generated before upgrading.&quot; 

Where can I edit this?</description>
		<content:encoded><![CDATA[<p>&#8220;You may need to edit your theme to remove the orginal “home” link if one was being generated before upgrading.&#8221; </p>
<p>Where can I edit this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Doctor</title>
		<link>http://wpfirstaid.com/2010/07/upgrade-wp_page_menu-to-wp_nav_menu/comment-page-1/#comment-2166</link>
		<dc:creator>The Doctor</dc:creator>
		<pubDate>Thu, 06 Jan 2011 00:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://wpfirstaid.com/?p=552#comment-2166</guid>
		<description>@Andrei - Thanks, I did mention that as part of the &quot;Bonus&quot; section at the end of the post.</description>
		<content:encoded><![CDATA[<p>@Andrei &#8211; Thanks, I did mention that as part of the &#8220;Bonus&#8221; section at the end of the post.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

