Home › Forums › General Issues › Dynamically registered (via PHP) relationship fields return no results › Reply To: Dynamically registered (via PHP) relationship fields return no results
In order to debug what is happening on the PHP side you need to do something like write the log file https://www.php.net/manual/en/function.error-log.php.
I still don’t think I have a clear picture of when the field is created. The information you’ve given does not tell me if the code is run during the ajax request. Is it done in your functions.php file, or some other file that is loaded every time WP initializes?
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.