Advanced Custom Fields: Nav Menu WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
A navigation menu field for Advanced Custom Fields
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/joshuafredrickson/acf-nav-menu/archive/refs/heads/main.zipOn Packagist as joshuafredrickson/acf-nav-menu:
composer require joshuafredrickson/acf-nav-menuACF Navigation Menu
A navigation menu field for ACF
Requirements
Installation
Bedrock
Install via Composer:
$ composer require joshuafredrickson/acf-nav-menu
Usage
The field will return the nav menu ID.
Use with wp_nav_menu:
$nav_menu_ID = get_field('nav_menu');
wp_nav_menu($args = ['menu' => $nav_menu_ID]);
Use with log1x/navi (recommended):
$nav_menu_ID = get_field('nav_menu');
(new \Log1x\Navi\Navi())->build($nav_menu_ID);
ACF Composer
$field->addField('my_nav_menu_field', 'nav_menu');
Bug Reports
If you discover a bug in ACF Navigation Menu, please open an issue.
Contributing
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
License
ACF Nav Menu is provided under the MIT License.
Releases
6 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.