Home › Forums › Front-end Issues › Menu conditional display based on an ACF field value › Reply To: Menu conditional display based on an ACF field value
You need to build a custom menu walker, there are tutorials like this one https://awhitepixel.com/blog/wordpress-menu-walkers-tutorial/
Sorry, but this is beyond my ability to help with here and all I can do is tell you what needs to be done.
In the walker, when the menu item is shown you need to get the current logged in user id and check the field and show or now show the menu item. This will likely require added these checks to both the start_el() and end_el() functions of your custom walker.
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.