Skip to content

A navigation menu field for Advanced Custom Fields

License

Notifications You must be signed in to change notification settings

joshuafredrickson/acf-nav-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACF 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.

About

A navigation menu field for Advanced Custom Fields

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages