Why doesn’t this work?
I’m trying to get flexible content from another page.
<?php
$post = isset($args['post']) ? $args['post'] : null;
print_r( get_field('blocks', $post) );
// Prints the content of 'blocks', I can see [acf_fc_layout] => my_block
?>
<section class="blocks">
<?
if( have_rows('blocks', $post) ):
echo "Is this if true?"; // no
while ( have_rows('blocks', $post) ) : the_row();
echo "Is this while run?"; // apparently not
if( get_row_layout() === 'my_block' ) {
// is false - my layout has disappeared
[...]