Add-On plugin for Advanced Custom Fields (ACF) that adds a 'Nav Menu' Field type.
Add Navigation Menus to Advanced Custom Fields (ACF) with the Nav Menu Field plugin! This plugin adds the Nav Menu Field type to ACF (version 5 & 4), allowing you to select from the menus you create in the WordPress Admin backend to use on your website’s frontend.
Using ACF, you can set the Nav Menu Field to return the selected menu’s:
I created this plugin because I needed to display a secondary menu that changed depending on what page you’re on. Most of those pages were children of the same page, but then I had to throw a couple of Custom Post Types in there too. Because of the Custom Post Types, I couldn’t just grab the top most parent for the current page and use wp_list_pages. So I did some research and decided to extend the functionality of my favourite plugin, Advanced Custom Fields. Now when I create a new Page or Custom Post, I just select the menu from a drop down menu!
Feel free to try this add-on on your dev site, ask questions on the support link above, and please review this add-on. By leaving a rating and review, you help this plugin become even better!
This add-on will work with:
Follow the following instructions: https://codex.wordpress.org/Managing_Plugins#Installing_Plugins
Follow the following instructions: https://codex.wordpress.org/Managing_Plugins#Installing_Plugins
Sure can!
Side Menu
(this will cause the Field Name to be side_menu
)Nav Menu HTML
Now in your themes sidebar.php, put the following code before or after any of the div’s with class=”widget-area”
Finally, create or edit a page, select a menu in the Side Menu field, and view the page to see that menu in the sidebar!
No.
So that you can style it yourself. I don’t want to step on your toes 🙂
First, check that you added the necessary ACF code to your templates. If you don’t know what I’m talking about, read up on how to use Advanced Custom Fields. If you’re already familiar with ACF and you still can’t figure out why the menu isn’t showing up, start a new support thread, include details and a little code, and I’ll do my best to help you.