{"id":30229,"date":"2014-06-23T19:17:11","date_gmt":"2014-06-23T19:17:11","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/wp-featured-menus\/"},"modified":"2015-08-21T12:58:31","modified_gmt":"2015-08-21T12:58:31","slug":"wp-featured-menus","status":"publish","type":"plugin","link":"https:\/\/it.wordpress.org\/plugins\/wp-featured-menus\/","author":6250429,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.3.1","stable_tag":"1.3.1","tested":"4.3.34","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"WP Featured Menus","header_author":"Topher","header_description":"","assets_banners_color":"","last_updated":"2015-08-21 12:58:31","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/codeventure.net","header_author_uri":"http:\/\/codeventure.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":2340,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"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","1.2","1.3","1.3.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"937418","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"937418","resolution":"2","location":"assets"}},"screenshots":{"1":"<p>The Featured Menus meta box when you <em>do not<\/em> have any Menus created in WordPress.<\/p>","2":"<p>The Featured Menus meta box when you <em>do<\/em> have Menus created in WordPress.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[838,231,243,166],"plugin_category":[43],"plugin_contributors":[82933],"plugin_business_model":[],"class_list":["post-30229","plugin","type-plugin","status-publish","hentry","plugin_tags-featured","plugin_tags-menus","plugin_tags-pages","plugin_tags-posts","plugin_category-customization","plugin_contributors-topher1kenobe","plugin_committers-topher1kenobe"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/wp-featured-menus.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/wp-featured-menus\/assets\/screenshot-1.png?rev=937418","caption":"<p>The Featured Menus meta box when you <em>do not<\/em> have any Menus created in WordPress.<\/p>"},{"src":"https:\/\/ps.w.org\/wp-featured-menus\/assets\/screenshot-2.png?rev=937418","caption":"<p>The Featured Menus meta box when you <em>do<\/em> have Menus created in WordPress.<\/p>"}],"raw_content":"<!--section=description-->\n<p>This plugin provides a metabox on posts and pages listing existing WordPress Menus.  The end user is allowed to choose one and make it associated with the post or page via meta data.<\/p>\n\n<p>Practically speaking, Featured Menus work exactly like Featured Images.  The Post or Page and Featured Menu are merely attached, and you must use a template tag or WordPress functions to render the Menu.<\/p>\n\n<p>Please see <a href=\"http:\/\/wordpress.org\/plugins\/wp-featured-menus\/other_notes\/\">Other Notes<\/a> for examples.<\/p>\n\n<h3>Usage<\/h3>\n\n<p>Page or Post meta has a key called <code>_wp_featured_menu<\/code>.  A very simple way to render the menu is like this:<\/p>\n\n<pre><code>&lt;?php\n    $meta = get_post_custom();\n    wp_nav_menu( array( 'menu' =&gt; $meta['_wp_featured_menu'][0] ) );\n?&gt;\n<\/code><\/pre>\n\n<p>A better way might be to test for the value first:<\/p>\n\n<pre><code>&lt;?php\n    $meta = get_post_custom();\n    if ( is_numeric( $meta['_wp_featured_menu'][0] ) ) {\n        wp_nav_menu( array( 'menu' =&gt; $meta['_wp_featured_menu'][0] ) );\n    }\n?&gt;\n<\/code><\/pre>\n\n<!--section=installation-->\n<p>This section describes how to install the plugin and get it working.<\/p>\n\n<ol>\n<li>Upload the <code>wp-featured-menus<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Create new or Edit a Post.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why don't you have more questions here?<\/dt>\n<dd><p>I haven't been asked any yet.  :)<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.3.1<\/h4>\n\n<p>Check for WP 4.0<\/p>\n\n<h4>1.3<\/h4>\n\n<ul>\n<li>Minor code validation changes.  No change in UI or functionality<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>ONE MORE variable change.  Last one, I promise.<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>change meta key name to not start with _wp<\/li>\n<li>change main class name to not start with WP<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<\/ul>","raw_excerpt":"Provides a metabox on posts and pages listing existing WordPress Menus.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/30229","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=30229"}],"author":[{"embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/topher1kenobe"}],"wp:attachment":[{"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=30229"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=30229"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=30229"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=30229"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=30229"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/it.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=30229"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}