carylwyatt / navbar-tailwind

UA navbar and megamenu as Vue component using TailwindCSS
0 stars 0 forks source link

WP theme/plugin #3

Open carylwyatt opened 4 years ago

carylwyatt commented 4 years ago

Figure out how to set up ACF (with all necessary fields, settings already built) and menu API plugin to be pre-configured for theme. Might need to be a plugin?

I assume this is a thing that can be done, I've just never done it!

How to include ACF in theme or plugin: https://www.advancedcustomfields.com/resources/including-acf-within-a-plugin-or-theme/

carylwyatt commented 4 years ago

As part of this, I think I might need some kind of function or hook that does a wipe of ACF data when a menu item is deleted.

It seems like there's a fatal error associated with ACF fields and deleted menu items, so it's probably best to do that general clean up somewhere in here.