Support

Account

Home Forums Front-end Issues Conditional logic with checkbox Reply To: Conditional logic with checkbox

  • I am still not sure, may be this will work for you. You have to add your fields in first line and you have to multiple times for multiple checkboxes.

    <?php $values = get_field('MYFIELD', $post->post_parent); if(in_array("CHECKBOX_NAME", $values )){ ?>
    
    <?php get_template_part("template-parts/button-template-loop/button-patch-loop"); ?>
    
    <? } ?>