Home › Forums › General Issues › Generate php – Where and how to put the code? › Reply To: Generate php – Where and how to put the code?
Hi John, you are truly helpful! I saw you also replied on my other question. Thanks for that!
So what would be the best way to go? I guess adding the php script (including the code to make certain fields required from my other question) to my functions.php file adding the location rule?
How do I add the location rule? Do I add it to if( function_exists('acf_add_local_field_group') ):
? What would be the code?
Sorry if this question might be stupid but my coding skills are not that great…
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.