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/derweili/afc-nav-menu-field/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Advanced Custom Fields: FIELD_LABEL Field
Add Custom ACF Field to select Nav Menus
Description
Add Custom ACF Field to select Nav Menus
How to use the field on the frontend:
$menu_id = get_field('_field_name' );
if( $menu_id ){
$menu = get_term($menu_id);
wp_nav_menu( array(
'menu' => $menu,
) );
}
Compatibility
This ACF field type is compatible with:
- ACF 4
Installation
- Copy the
derweili-acf-nav-menu-fieldfolder into yourwp-content/pluginsfolder - Activate the ACF Nav Menus Field plugin via the plugins admin page
- Create a new field via ACF and select the Nav Menu type
- Read the description above for usage instructions
Changelog
1.0.0
- Initial Release.