{"id":12990,"date":"2011-05-06T15:22:28","date_gmt":"2011-05-06T15:22:28","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/submenu-filter\/"},"modified":"2012-01-31T12:28:16","modified_gmt":"2012-01-31T12:28:16","slug":"submenu-filter","status":"publish","type":"plugin","link":"https:\/\/lmo.wordpress.org\/plugins\/submenu-filter\/","author":1901556,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2","stable_tag":"trunk","tested":"3.1.4","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Submenu Filter","header_author":"Marcus Downing","header_description":"","assets_banners_color":"","last_updated":"2012-01-31 12:28:16","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.bang-on.net","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3579,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1865,4891],"plugin_category":[43],"plugin_contributors":[83365],"plugin_business_model":[],"class_list":["post-12990","plugin","type-plugin","status-publish","hentry","plugin_tags-menu","plugin_tags-nav","plugin_category-customization","plugin_contributors-marcusdowning","plugin_committers-marcusdowning"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/submenu-filter.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>When writing or modifying a theme, the function wp_nav_menu() displays the contents of menus configured in your settings. If you have a lot of little menus the list can get hard to manage, so this plugin lets you group several menus under a single menu.<\/p>\n\n<p>To use it, simply add a <code>submenu<\/code> parameter to the arguments of wp_nav_menu, like so:<\/p>\n\n<pre><code>wp_nav_menu(array(\n  'menu' =&gt; 'header',\n  'submenu' =&gt; 'About Us'\n));\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>Install this plugin in the normal way:<\/p>\n\n<ol>\n<li>Place it in your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li><p>Use the <code>wp_nav_menu<\/code> function with a <code>submenu<\/code> parameter in your templates<\/p>\n\n<p>wp_nav_menu(array(\n  'menu' =&gt; 'header',\n  'submenu' =&gt; 'About Us'\n));<\/p><\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>What happens if there's no submenu with the right name?<\/dt>\n<dd><p>It defaults to the main menu, the same as if the plugin wasn't installed.<\/p><\/dd>\n<dt>How do I select a menu more than one level deep?<\/dt>\n<dd><p>You can go several levels deep by putting slashes in:<\/p>\n\n<pre><code>wp_nav_menu(array(\n  'menu' =&gt; 'header',\n  'submenu' =&gt; 'About Us\/Board of Directors'\n));\n<\/code><\/pre>\n\n<p>Or if you prefer with an array:<\/p>\n\n<pre><code>wp_nav_menu(array(\n  'menu' =&gt;\n  'submenu' =&gt; array('About Us', 'Board of Directors')\n));\n<\/code><\/pre><\/dd>\n<dt>Can I use a page's slug?<\/dt>\n<dd><p>No, the plugin uses the page's title, not its slug.<\/p><\/dd>\n<dt>Do I have to type the title exactly the same?<\/dt>\n<dd><p>The plugin should be forgiving of small differences in punctuation, capital letters and so on as long as all the letters are the same.<\/p><\/dd>\n\n<\/dl>","raw_excerpt":"Adds tha ability to show only a submenu with wp_nav_menu().","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12990","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12990"}],"author":[{"embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marcusdowning"}],"wp:attachment":[{"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12990"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12990"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12990"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12990"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12990"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/lmo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}