I have a WordPress template based on Sage which is using the new ACF blocks feature and Blade templates. Everything is working just fine.
I have a Gutenberg block that pulls some posts with WP_Query then loops through them this way:
$projects = new WP_Query(…);
while ($projects->have_posts()): $projects->the_post();
the_title(); // works
the_ID() // works
the_field('location') // does not work
the_field('location', get_the_ID()); // works
Do you have any idea why the_field() fails without passing an ID even though the_post seems to be set up properly (because the_ID() works correctly)?
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