Home › Forums › General Issues › Best practice for naming the fields › Reply To: Best practice for naming the fields
i tend to use a neutral prefix for all fields created by me & followed by the slug of cpt as second prefix.
would be for example: myacf_book_author, ...
why?
with that i can be 99% sure that i dont conflict with other fields.
i am also able to reuse the “fields/code” for an other customer, without the need to rewrite anything.
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.