$talks = get_field('conference_talks', false, false); print_r($talks); Array (  => 3997  => 3998  => 3996  => 3995  => 3994 )
as opposed to:
$talks = get_field('conference_talks'); print_r($talks); Array ( )
so it at least returns something, but it has appeared to caused some of the other custom fields to return incorrect values.
I guess the other fields were messed up because it was no longer return the post object and instead the post ID (aside: I’m guessing this is similar to changing the Return Format from Post Objects to Post IDs) so where before I had things like:
$user = get_field('talk_speaker'); the_field('talk_description');
I now need:
$user = get_field('talk_speaker', $post); the_field('talk_description', $post);
which I have done and seems to have everything working.
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!
ACF PRO’s Flexible Content field allows you to create smaller pieces of UI and compose them into whole flexible patterns. In our latest article, we show how to use it to create swappable site sections and integrate it all in a theme.https://t.co/ZRocH8oJSp— Advanced Custom Fields (@wp_acf) January 24, 2023
© 2023 Advanced Custom Fields.