Home › Forums › Backend Issues (wp-admin) › Dynamically Loading Values From Adjacent Fields › Reply To: Dynamically Loading Values From Adjacent Fields
To be honest, I don’t know why it’s not showing anything as it should be working. try this, possible there’s something in there that’s causing an issue, but I can’t see what it is.
function acf_load_field_choices( $field ) {
global $post;
echo '<pre>'; print_r($field); echo '</pre>';
echo '<pre>'; print_r(get_field('questions', $post->ID); echo '</pre>';
return $field;
}
add_filter('acf/load_field/name=dependency', 'acf_load_field_choices');
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.