I’m having an issue with a True/False Field always returning ‘false’ when used inside a Flexible Field. I’m wondering if there’s a specific way it needs to be used in this context?
Hi @brunocloutier
Perhaps you could post a screenshot of the back-end data and then the code you are using to render it?
Thanks
E
Of course! Here’s the (simplified) code and the attached screenshot of the back-end data. The back-end is in french, hope it won’t cause any problem.
<?php elseif(get_row_layout() == 'image-5') : ?>
<?php var_dump(get_sub_field('keep_grouped')); ?>
<?php endif; ?>
I’ve been able to make it work correctly outside of a Flexible Field.
Thank you!
Hi @brunocloutier
print_r won’t show a true / false. Can you use var_dump instead?
Thanks
E