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!
🚀 This week’s session of ACF Chat Fridays dips into the preliminary results of our first ever user survey. Don’t miss it! https://t.co/3UtvQbDwNm pic.twitter.com/kMwhaJTkZc— Advanced Custom Fields (@wp_acf) May 9, 2023
© 2023 Advanced Custom Fields.