Home › Forums › General Issues › Any best practice for making coding of ACF in PHP easier? › Reply To: Any best practice for making coding of ACF in PHP easier?
I don’t think anyone has a best approach. With complex field groups and building them in php it has always translated into extremely complex code. I usually do everything in OOP, it’s the habbit I’ve fallen into, and even here it becomes complex.
I have not tried this, but you might want to take a look at it. It’s not really for me because I dislike adding layers of abstraction that I need to figure out every time I look at my code, but it may offer a different solution for you acf Component Field https://acf-component-field.gummi.io/. They also have a pro version I think.
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!