A navigation menu field for ACF.
Install via Composer:
$ composer require accell/acf-nav-menu
Download the release .zip
and install into wp-content/plugins
.
Calling the field will return an ID, object, or raw HTML depending on how you've configured the field.
If you are on Sage 10 and using Log1x's ACF Composer package:
$field
->addField('my_nav_field', 'nav_menu')
->setConfig('return_format' => 'id')
->setConfig('allow_null' => 0)
->setConfig('container' => 'div');
If you discover a bug in ACF Nav Menu, please open an issue.
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
ACF Nav Menu is provided under the MIT License.