accell/acf-nav-menu

ACF field that allows you to select a nav menu.

Installs: 593

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:wordpress-plugin

v1.0.1 2022-06-01 19:53 UTC

This package is auto-updated.

Last update: 2025-05-29 01:38:11 UTC


README

A navigation menu field for ACF.

Requirements

Installation

Bedrock

Install via Composer:

$ composer require accell/acf-nav-menu

Manual

Download the release .zip and install into wp-content/plugins.

Usage

Calling the field will return an ID, object, or raw HTML depending on how you've configured the field.

ACF Composer

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');

Bug Reports

If you discover a bug in ACF Nav 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.