{"id":39199,"date":"2015-10-02T08:25:49","date_gmt":"2015-10-02T08:25:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/menu-fields\/"},"modified":"2017-01-30T17:35:25","modified_gmt":"2017-01-30T17:35:25","slug":"menu-fields","status":"closed","type":"plugin","link":"https:\/\/yor.wordpress.org\/plugins\/menu-fields\/","author":13954468,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.2.4","stable_tag":"trunk","tested":"4.3.34","requires":"4.0.1","requires_php":"","requires_plugins":"","header_name":"Menu Fields","header_author":"psd2html.com","header_description":"","assets_banners_color":"f6f7fa","last_updated":"2017-01-30 17:35:25","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/psd2html.com","header_plugin_uri":"http:\/\/www.psd2html.com\/","header_author_uri":"http:\/\/psd2html.com","rating":0,"author_block_rating":0,"active_installs":30,"downloads":2235,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.2.1":"<ul>\n<li>Initial release<\/li>\n<\/ul>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":"1258033","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.2.2","1.2.3","1.2.4"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1585251","resolution":"1","location":"plugin"}},"screenshots":{"1":"Back-end View"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[83,2240,1865],"plugin_category":[43],"plugin_contributors":[86706],"plugin_business_model":[],"class_list":["post-39199","plugin","type-plugin","status-closed","hentry","plugin_tags-admin","plugin_tags-field","plugin_tags-menu","plugin_category-customization","plugin_contributors-psd2html","plugin_committers-psd2html"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/menu-fields_f6f7fa.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/menu-fields\/trunk\/screenshot-1.jpg?rev=1585251","caption":"Back-end View"}],"raw_content":"<!--section=description-->\n<p>The Menu Fields plugin is an easy-to-use extension of the basic WordPress functionality allowing you to create fully customizable menus by adding extra fields to the menu items.<\/p>\n\n<p>With Menu Fields, you can add fields of the following types:<\/p>\n\n<ul>\n<li>image<\/li>\n<li>input<\/li>\n<li>textarea<\/li>\n<li>radio<\/li>\n<li>select<\/li>\n<li>checkbox<\/li>\n<li>color<\/li>\n<\/ul>\n\n<p>You can also assign each field to a theme location and specify where this field should appear.<\/p>\n\n<p>After the plugin has been activated, all fields are enabled by default for demonstration purposes.\nYou can easily modify the configuration by specifying fields in the file functions.php in your theme.<\/p>\n\n<!--section=installation-->\n<p>Installing the plugin is simple and intuitive:<\/p>\n\n<ol>\n<li>From the dashboard of your site, navigate to Plugins \u2192 Add New.<\/li>\n<li>Select the Upload option and hit \"Choose File\".<\/li>\n<li>When the popup appears, select the menu_fields.zip file from your computer.<\/li>\n<li>Follow the on-screen instructions and wait until the upload completes.<\/li>\n<li>When it's finished, activate the plugin via the prompt. A message will confirm whether the activation was successful.<\/li>\n<\/ol>\n\n<p>The plugin folder contains a default configuration file called config.php. It has examples of how to enable any field type supported. The order of fields and their number is set by the configuration array.\nNote: If you need to create your own configuration, do not modify config.php!\nCreate your array of fields in functions.php and enable it via a filter just like in config.php.<\/p>\n\n<p>Example:\nLet's add two fields: textarea and text.<\/p>\n\n<p>Add the following code to functions.php in your theme:\n     'textarea',\n                  'name' =&gt; 'textarea',\n                  'label' =&gt; 'Textarea',\n              ),\n    \n              array(\n                  'type' =&gt; 'text',\n                  'name' =&gt; 'text',\n                  'label' =&gt; 'Text'\n              ),\n          );\n          return $fields;\n    }\n    add_filter( 'custom_menu_fields', 'mytheme_menu_fields' );\n    ?&gt;<\/p>\n\n<p>Use the following code to display these fields in the front-end:<\/p>\n\n<pre><code>&lt;?php\nif( function_exists( 'get_menu_field' ) ){\n   $item_output .= get_menu_field( 'textarea', $id );\n   $item_output .= get_menu_field( 'text', $id );\n}\n?&gt;\n<\/code><\/pre>\n\n<!--section=faq-->\n<p>There are no questions yet<\/p>\n\n<!--section=changelog-->\n<h4>Version 1.2.1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Create customizable menus right in your WordPress admin panel.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39199"}],"author":[{"embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/psd2html"}],"wp:attachment":[{"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39199"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39199"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39199"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39199"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39199"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/yor.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}