pierrebalian of Rocket55 Web Team
5/26/2017 - 2:45 PM

Acf Conditional H1 from radio button field

Acf Conditional H1 from radio button field

<<?php if (get_sub_field('tib_is_h1') == 'Yes'): ?>h1 <?php else: ?>h2 <?php endif; ?> class="page-title"><?php the_sub_field('tib_title'); ?></<?php if (get_sub_field('tib_is_h1') == 'Yes'): ?>h1<?php else: ?>h2<?php endif; ?>>