Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, I am also interested in this, how would I use this with Elementor what element should I use to call the custom field? I have tried text editor and heading but the field does not show. It shows on the page edit meta but not as a key to select whilst in the visual builder.

    Many thanks, and great plugin

    I’m gonna third this. I’m hunting for examples in the readme or plugin files but am having trouble pulling in the field. Thanks in advance!

    So, I think I figured this out.

    My issue was that I was trying to pull in the menu from a custom taxonomy and 1) had the ID field wrong and 2) didn’t have a menu selected (not sure how that happened).

    What I learned is that LuckyWP ACF Menu Field can still use the get_field() and the_field() functions like any other template that pulls in ACF fields uses.

    Where those two functions are added and what they look like will depend on what template file you are adding them to.

    For a menu field that is added to any page, you would go to the particular page you are trying to edit and make sure the menu is selected on that page. Once set, you can go to the page template (perhaps page.php) and add the_field('your_menu_fields_name');.

    In my case, I was trying to pull in a menu that I had set for a custom taxonomy (not a page). So I needed to reference the taxonomy ID as well. So my function looked more like this: the_field('my_menu_field_name','customtaxonomyname_17'); The “my_menu_field_name” being set in the ACF field group settings in the dashboard, the “customtaxonomyname” being set in functions.php when I defined my custom taxonomy, and “17” being the ID of the taxonomy term I was trying to target.

    Hope that helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Usage code’ is closed to new replies.