<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1" -->
<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"
		>
	<channel>
		<title>WordPress Ideas &#187; Tag: wp_nav_menu - Recent Posts</title>
		<link>http://wordpress.org/extend/ideas/tags/wp_nav_menu</link>
		<description>WordPress Ideas &#187; Tag: wp_nav_menu - Recent Posts</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 22:28:13 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1</generator>
				<atom:link href="http://wordpress.org/extend/ideas/rss/tags/wp_nav_menu" rel="self" type="application/rss+xml" />

		<item>
			<title>Elron on "Highlight Current Post or Category in Menus."</title>
			<link>http://wordpress.org/extend/ideas/topic/highlight-current-post-or-category-in-menus#post-22950</link>
			<pubDate>Sat, 29 Sep 2012 15:56:22 +0000</pubDate>
			<dc:creator>Elron</dc:creator>
			<guid isPermaLink="false">22950@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>lets say we have this menu:</p>
<pre><code>Home:                                /
About (page):                        /p=10
A Category (archive):                /cat=8
A post of cat num 8 (post):          /p=101</code></pre>
<p>If we go to "A Catogory" - Yes, the li has .current-menu-item class on, and thats good!<br />
But if we go to post-101, the parent-category is not highlighted in the menu. So thats 1 problem.</p>
<p>Lets view another example with menu-childs:</p>
<pre><code>Home:                                /
About (page):                        /p=10
--&#62; A Category (archive):            /cat=8
--&#62; --&#62; A post of cat num 8 (post):  /p=101</code></pre>
<p>if we go to "A Category" or "A Post...", the menu-parent (About) has no .current-menu-item class as well.</p>
<p>That feature is required.<br />
Thanks alot!
</p>]]></description>
					</item>
		<item>
			<title>MayerRubin on "Make it easier to use definition lists with wp_nav_menu"</title>
			<link>http://wordpress.org/extend/ideas/topic/make-it-easier-to-use-definition-lists-with-wp_nav_menu#post-22709</link>
			<pubDate>Tue, 14 Aug 2012 14:02:19 +0000</pubDate>
			<dc:creator>MayerRubin</dc:creator>
			<guid isPermaLink="false">22709@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>I know its a bit late, but maybe this will help the next person with the same problem.</p>
<p>I got it to do what you wanted by a combination of function arguments (<strong>echo</strong> and <strong>items_wrap</strong>) and processing the output of wp_nav_menu() using the PHP function <strong>str_replace()</strong>.</p>
<pre><code>$args = array(
  &#039;echo&#039; =&#62; false,
  &#039;items_wrap&#039; =&#62; &#039;&#60;dl id=&#34;%1$s&#34; class=&#34;%2$s myclass&#34;&#62;%3$s&#60;/dl&#62;&#039;,
);
$subject = wp_nav_menu( $args ); 

$search  = array(&#039;&#60;ul&#039;, &#039;&#60;/ul&#62;&#039;, &#039;&#60;li&#039;, &#039;&#60;/li&#62;&#039;);
$replace = array(&#039;&#60;dl&#039;, &#039;&#60;/dl&#62;&#039;, &#039;&#60;dd&#039;, &#039;&#60;/dd&#62;&#039;);
echo str_replace($search, $replace, $subject);</code></pre>
<p>You can replace the <code>&#60;ul&#62;</code> tag either in the <strong>items_wrap</strong> argument or in the <strong>str_replace()</strong>.
</p>]]></description>
					</item>
		<item>
			<title>rsteer on "Embed Menus Within Menus"</title>
			<link>http://wordpress.org/extend/ideas/topic/embed-menus-within-menus#post-21913</link>
			<pubDate>Sat, 05 May 2012 08:12:09 +0000</pubDate>
			<dc:creator>rsteer</dc:creator>
			<guid isPermaLink="false">21913@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>I've wished it were possible to build up menus in a *modular* fashion, and it seems like this proposal would probably allow that.  A modular approach would be particularly helpful when constructing "mega-menus" -- each block or chunk in the mega-menu could be a building-block menu that might appear in a couple of different contexts.  Define it once, then re-use it in any custom menu where it's appropriate.
</p>]]></description>
					</item>
		<item>
			<title>Ipstenu (Mika Epstein) on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21481</link>
			<pubDate>Fri, 09 Mar 2012 04:31:04 +0000</pubDate>
			<dc:creator>Ipstenu (Mika Epstein)</dc:creator>
			<guid isPermaLink="false">21481@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>Oh I agree that long menus are a bad idea. But to the specific matter of Marventus' idea:</p>
<blockquote><p>Another use that I see is conditional menus based on login status: if your menu is very long, instead of creating multiple ones, you could simply create one and use the exclude parameter to customize each visible version.</p></blockquote>
<p>There's a technical issue with that everyone should be aware of. Long menus break stuff :/
</p>]]></description>
					</item>
		<item>
			<title>Ihor Vorotnov on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21480</link>
			<pubDate>Thu, 08 Mar 2012 22:52:39 +0000</pubDate>
			<dc:creator>Ihor Vorotnov</dc:creator>
			<guid isPermaLink="false">21480@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>You may call me whatever you want, but I really think if you have loooooong menus - there's something wrong with your content organization and structure. There are some cases when you need them to be long, e.g. on my veterinary portal there's a list of all pets and every of them has all breeds listed. Yes, they are massive. But in this case it would be odd to use <code>wp_nav_menu</code> to build it.
</p>]]></description>
					</item>
		<item>
			<title>Ipstenu (Mika Epstein) on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21477</link>
			<pubDate>Thu, 08 Mar 2012 20:08:19 +0000</pubDate>
			<dc:creator>Ipstenu (Mika Epstein)</dc:creator>
			<guid isPermaLink="false">21477@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<blockquote><p>if your menu is very long, instead of creating multiple ones, you could simply create one and use the exclude parameter to customize each visible version.</p></blockquote>
<p>Word of warning - Long menus can cause problems. This is a known issue in WP right now, and it's probably safer not to have one massive menu just yet.
</p>]]></description>
					</item>
		<item>
			<title>Ihor Vorotnov on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21475</link>
			<pubDate>Thu, 08 Mar 2012 19:14:47 +0000</pubDate>
			<dc:creator>Ihor Vorotnov</dc:creator>
			<guid isPermaLink="false">21475@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<blockquote><p>The argument is already included in other functions for which your same arguments could be applied.</p></blockquote>
<p>But those are different functions. <code>wp_nav_menu()</code> has completely different concept behind it. And its concept is to use menu editor to build the EXACT menu you need.</p>
<p>I'm not totally arguing against you proposal. I just think it will not work with the idea of building custom menus. It's a bit awkward if you manually create a menu and then somewhere on the site it does not look like it supposed to. It should be dead simple - create a menu, include it in your template and see it exactly how you configured it. That's what most of users expect it to be.
</p>]]></description>
					</item>
		<item>
			<title>Marventus on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21474</link>
			<pubDate>Thu, 08 Mar 2012 19:05:29 +0000</pubDate>
			<dc:creator>Marventus</dc:creator>
			<guid isPermaLink="false">21474@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<pre><code>If you are adding wp_nav_menu() in different contexts it seems like you are techie / theme developer</code></pre>
<p>I am not just thinking about me: I'm sure there are many non-developers out there that could find this feature useful.<br />
<pre><code>wp_nav_menu() function allows you to call a custom walker (see reference). You can use it to achieve your task.</code></pre>
<p>Walkers are for controlling HTML output. I use them all the time, but they seem highly overkill for the purposes described above, don't they?</p>
<pre><code>If you need another menu - create it, it takes only few minutes in menu editor.</code></pre>
<p>That may be your opinoin and/or way of going about it. However, I still think it would be nice to have the option to do it differently. THe argument is already included in other functions for which your same arguments could be applied. Yet, the argument is there. I am only asking to extend it to a very similar function.
</p>]]></description>
					</item>
		<item>
			<title>Ihor Vorotnov on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21473</link>
			<pubDate>Thu, 08 Mar 2012 18:55:49 +0000</pubDate>
			<dc:creator>Ihor Vorotnov</dc:creator>
			<guid isPermaLink="false">21473@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>If you are adding <code>wp_nav_menu()</code> in different contexts it seems like you are techie / theme developer, not an editor. And the case of this contextual exclusion is rather rare. <code>wp_nav_menu()</code> function allows you to call a custom walker (see reference). You can use it to achieve your task. </p>
<p>The whole idea of <code>wp_nav_menu()</code> is to make creating CUSTOM menus and including them in your theme easy and without any additional coding. If you need another menu - create it, it takes only few minutes in menu editor.
</p>]]></description>
					</item>
		<item>
			<title>Marventus on "Add exlude parameter to wp_nav_menu function"</title>
			<link>http://wordpress.org/extend/ideas/topic/add-exlude-parameter-to-wp_nav_menu-function#post-21470</link>
			<pubDate>Thu, 08 Mar 2012 18:31:31 +0000</pubDate>
			<dc:creator>Marventus</dc:creator>
			<guid isPermaLink="false">21470@http://wordpress.org/extend/ideas/</guid>
			<description><![CDATA[<p>It could be useful if you want to reuse the menu in a different context but want to leave certain elements out. Another use that I see is conditional menus based on login status: if your menu is very long, instead of creating multiple ones, you could simply create one and use the exclude parameter to customize each visible version.<br />
Based on the function's code, it seems easy enough to implement and could potentially help users save a lot of time in blog customization.
</p>]]></description>
					</item>

	</channel>
</rss>
