This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Menu Custom Fields


This plugin adds custom fields on menu item’s edit interface of wp-admin.
Below is the list of custom fields this plugin adds.

  • Custom text
  • Image selection with link and caption
  • Shortcode with caption
  • Custom HTML with TinyMCE editor

Note: This plugin works with default themes. In order to use it with custom themes, please add the necessary styling.


  1. After installing and activating this plugin, goto Appearance -> Menus of your WordPress admin. Create a menu if you haven’t already and add menu items according to your need.
  2. When you expand any menu item, you’ll see the custom fields added here (see screenshots below). You can see Custom Field and Select Feature options.
  3. Along with Custom Text field, you can choose to use either Image, Shortcode or Custom HTML feature for a particular menu item.
  4. You can click on the option you want to use and the input fields of that option will be visible.

Using Custom Text field

  • You can enter any text here and it’ll be displayed with this menu item.
  • This field can be used by all menu items along with any other feature.

Using Image

  • By clicking on Select Image button, WordPress’ media gallery window will be opened up. You can choose 1 image from already uploaded images or you can upload a new one and select that.
  • The selected image will be shown below Select Image button after you select and close the media gallery window.
  • To remove already selected image, click on Select Image button and deselect the already selected image. You can change the selected image by selecting any other image.
  • You can enter a URL in Image Link text field. On front-end, clicking on the image will lead to this URL.
  • You can enter a caption text in Image Caption field and it’ll be displayed below the image on the front-end.

Using Shortcode

  • You can add a shortcode in Shortcode field. We’ve added some stylings to handle WordPress’ defaut [video] shortcode.
  • You can enter a caption text in Shortcode Caption field and it’ll be displayed below the shortcode on the front-end.

Using Custom HTML

  • TinyMCE editor is used to add custom HTML here.
  • From the Visual tab, you can enter text and format it using tools given in toolbar.
  • You can switch to Text tab to see/change HTML code of the text you entered.


wp_menu_custom_fields_image_html Filter

  • Allows to change HTML generated for image feature.
  • There are 3 parameters. $html (Generated HTML), $data (Custom fields data), $item_id (Menu item ID).
  • Example:

        [selected-feature] => image
        [image] => Array
                [media-id] => 11
                [media-type] => image
                [media-link] =>
                [media-caption] => This is image caption
                [media-url] =>

wp_menu_custom_fields_shortcode_html Filter

  • Allows to change HTML generated for shortcode feature.
  • Parameters are same as wp_menu_custom_fields_image_html.
  • Example:

        [selected-feature] => shortcode
        [shortcode] => Array
                [shortcode] => [video src=""]
                [shortcode-caption] => This is a shortcode caption

wp_menu_custom_fields_custom_markup_html Filter

  • Allows to change HTML generated for custom HTML feature.
  • Parameters are same as wp_menu_custom_fields_image_html.
  • Example:

        [selected-feature] => html
        [html] => Array
                [custom-html] => <em><strong>This is custom HTML</strong></em>

wp_menu_custom_fields_custom_text_html Filter

  • Allows to change HTML generated for custom text field.
  • Parameters are same as wp_menu_custom_fields_image_html.
  • Example:

        [custom-text] => This is a custom text

wp_menu_custom_fields_fields_html Filter

  • Allows to change the final custom field’s HTML generated for a particular menu item.
  • Parameters are same as wp_menu_custom_fields_image_html.
  • Example:

            [custom-text] => This is a custom text
            [selected-feature] => image
            [image] => Array
                    [media-id] => 11
                    [media-type] => image
                    [media-link] =>
                    [media-caption] => This is image caption
                    [media-url] =>

Styling mega menu

A theme developer can add stylings for the custom fields added by this plugin by referring to the below sample HTML code.

  • Image & Custom text

    • Sample HTML code

          <div class="rt-wp-menu-custom-fields-wrapper" style="padding-top: 10px; padding-right: 20px;">
              <div class="rt-wp-menu-custom-fields-image-wrapper">
                  <a href="">
                      <img class="rt-wp-menu-custom-fields-image" src="">
                  <span class="rt-wp-menu-custom-fields-image-caption">This is an image caption</span>
              <span class="rt-wp-menu-custom-fields-custom-text">This is a custom text</span>
    • If Image Link is entered, then img tag will be wrapped inside a.

    • Custom text will be displayed below the feature’s HTML.
  • Shortcode

            <div class="rt-wp-menu-custom-fields-shortcode-wrapper">
                <div class="rt-wp-menu-custom-fields-shortcode">
                    <!-- shortcode HTML will be here -->
                <span class="rt-wp-menu-custom-fields-shortcode-caption">This is shortcode caption!</span>
  • Custom HTML

            <div class="rt-wp-menu-custom-fields-custom-html">Welcome to <strong>WordPress</strong>. This is your first post. Edit or delete it, then start <em>writing</em>!</div>

Important Links

  • GitHub — Please mention your username when sending pull requests.


Same GPL that WordPress uses!

See room for improvement?

Great! There are several ways you can get involved to help make this plugin better:

  1. Report Bugs: If you find a bug, error or other problem, please report it! You can do this by creating a new topic in the issue tracker.
  2. Suggest New Features: Have an awesome idea? Please share it! Simply create a new topic in the issure tracker to express your thoughts on why the feature should be included and get a discussion going around your idea.


  • Custom fields added under Appearance -> Menus
  • Custom HTML
  • Image with custom text
  • Video via shortcode


  1. Extract the zip file.
  2. Upload it to the /wp-content/plugins/ directory in your WordPress installation.
  3. Activate the WP Menu Custom Fields from your Plugins page.


29 Հոկտեմբերի, 2021
If you need to customize the wordpress menu with custom sections (for example with html code) this plugin is a bomb! I customized my menu in a few minutes and without modifying the template files. The other existing plugins only provide an API key that allows you to manually change the menu section, instead this is the only one that does it automatically for you, saving hours of work. It's fast, intuitive, lightweight and effective. Recommended.
Read all 1 review

Contributors & Developers

“WP Menu Custom Fields” is open source software. The following people have contributed to this plugin.


“WP Menu Custom Fields” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “WP Menu Custom Fields” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



* Fix audio Shortcode not rendering on frontend
* Fix few notices


* Class WP_Menu_Custom_Fields\Inc\Plugin not found error on Windows platform


  • Initial release