Home › Forums › Add-ons › Options Page › using options page fields in functions.php › Reply To: using options page fields in functions.php
Hi @thesrpr
Currently, ACF will work only AFTER the init action. Before this (when the functions.php file is run), the get_field function will not work.
In the next version of ACF, this will be fixed! Until then, you need to move your logic into a function which is run on or after the init action.
Thanks
E
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.