Home › Forums › General Issues › Display ACF Post Object field in admin column › Reply To: Display ACF Post Object field in admin column
it depends on the return value for the post object field.
If you are returning a post object then you can’t just echo the value, if you want, for example to display the post title
$object = get_field('film_realisatrice', $post->id); echo get_the_title($object->ID);
On the other hand if you are returning the id then you could do something like
echo get_the_title(get_field('film_realisatrice', $post->ID));
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’re reaching out to our multilingual users to ask for help in translating ACF 6.1. Help make sure the latest features are available in your language here: https://t.co/TkEc2Exd6U— Advanced Custom Fields (@wp_acf) May 22, 2023
© 2023 Advanced Custom Fields.