Home › Forums › General Issues › Adding custom fields to menu item
Is it possible to add a rule to allow adding custom fields to a menu item?
This is not something that can be done currently in ACF as far as I know. Menus items, while they are posts, use a different system for adding custom fields than the meta box method used everywhere else in WP.
I would like to have this option too. As my menu is complex and very dynamic. I don’t use Location for getting menu items, rather wp_get_nav_menu_items(). An item title would be retrieved as an object property $item->title, and so I would like to be able to retrieve ACFs.
This addon plugin purports to add this functionality:
https://wordpress.org/plugins/location-nav-menu-for-acf/
I haven’t used it yet so can’t vouch for it, but I came across it while researching the same possibilities.
There is also more information about it here https://support.advancedcustomfields.com/forums/topic/acf-location-nav-menu/
The plugin Location “Nav Menu” For ACF mentioned by @tdmalone seems to be working perfectly. Frontend PHP “documentation” is in the FAQ tab on the plugin page.
Location “Nav Menu” For ACF plugin is now broken or not supported anymore? Cant get it to work with ACF PRO latest.
did you manage to solve this? Seems you can select Menu Item in the location options but it only shows the menu names. Not the items.
@v3nt yes it’s correct for me.
When I wrote this question there were no support for Menu and Menu items.
But it has been introduced in version 5.6.0 https://www.advancedcustomfields.com/resources/adding-fields-menu-items
The topic ‘Adding custom fields to menu item’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.