Support

Account

Home Forums Front-end Issues Hide button if empty Reply To: Hide button if empty

  • If I’m understanding correctly, you’ll need this:

    <?php
    
    $volunteer = get_sub_field( 'volunteer' );
    $register = get_sub_field( 'register' );
    
    ?>
    
    <?php if($volunteer): ?><button>Volunteer button</button><?endif;?>
    <?php if($register): ?><button>Register button</button><?endif;?>