Hi everyone,
I am having an issue with flexible content. I create an image field with the true and false selections. The upload of the image works and it displays accordingly, but when I go and try to hide the field, the front end does not hide the image, even though the image should be off.
Below is the code I used for the image as well as the code I used for titles.
Any help would be greatly appreciated.
<div class=”col-md-6″>
<?php $leader_image = get_sub_field(‘image_column_two’); ?>
<div class=”col-lg-12″>
“alt=”<?php echo $leader_image[‘alt’]; ?>” width=”100%”>
</div>
<?php
if(get_sub_field(‘display_title_two’) ): ?>
<h1><?php the_sub_field(‘title_column_two’); ?></h1>
<?php endif; ?>
<p><?php the_sub_field(‘content_two’); ?></p>
</div>