Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Advanced Custom Fields: Nav Menu Field icon

Advanced Custom Fields: Nav Menu Field

v2.0.0
by Faison · 5.0 (33 reviews)

Add-On plugin for Advanced Custom Fields (ACF) that adds a 'Nav Menu' Field type.

10K+ active installs Updated Nov 28, 2017 Tested to 4.0.38
Try Demo Download
Pre-installed Ready in ~10s No card

About Advanced Custom Fields: Nav Menu Field

The Nav Menu Field plugin allows you to add navigation menus created in the WordPress Admin backend to your website's frontend using Advanced Custom Fields. You can choose to return the selected menu's ID, object, or HTML for easy display. This plugin was created to solve the problem of displaying a secondary menu that changed depending on the page, including Custom Post Types.

Screenshots

Advanced Custom Fields: Nav Menu Field screenshot
Advanced Custom Fields: Nav Menu Field screenshot
Advanced Custom Fields: Nav Menu Field screenshot
Advanced Custom Fields: Nav Menu Field screenshot

Frequently asked questions

What does the Nav Menu Field plugin do?
The Nav Menu Field plugin adds the Nav Menu Field type to Advanced Custom Fields, allowing you to select from the menus you create in the WordPress Admin backend to use on your website's frontend.
What can I set the Nav Menu Field to return?
Using ACF, you can set the Nav Menu Field to return the selected menu's ID for lightweight coding, Object for more involved programming, or HTML (generated from wp_nav_menu) for quickly displaying a menu.
Why was the Nav Menu Field plugin created?
The Nav Menu Field plugin was created to display a secondary menu that changed depending on the page. It was necessary due to the presence of Custom Post Types that prevented the use of wp_list_pages.
Can I try the add-on on my dev site?
Yes, you are free to try this add-on on your dev site. If you have any questions, you can ask them on the support link provided above.
Will the add-on work with Advanced Custom Fields version 4 and 5?
Yes, this add-on is compatible with both version 4 and version 5 of Advanced Custom Fields.

Changelog

2.0.0

  • Added ACF v5 class.
  • Updated code to follow coding standards
  • Updated the ACF v4 class to use the updated code found in the ACF v5 Class

1.1.2

  • Fixed a silly mistake related to allowing Null for a Nav Menu Field. Basically, it was storing the string “null” when you don’t select a menu, that’s taken care of now.

1.1.1

  • I forgot to add a default value for the Menu Container field, so I added ‘div’ as the default value. If you upgraded from 1.0.0 to 1.1.0 and had WP_DEBUG enabled, you would receive a warning about an unknown index. Since I like debug mode to run without warnings, I fixed this.

1.1.0

1.0.0

  • Initial Release.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…