• Resolved emitokyojp

    (@emitokyojp)


    <?php if( get_field('toi_12') == "08"): ?>
     A
    <?php else: ?>
     B
    <?php endif; ?>

    In this state, B will not be displayed. How can I display B when 08 is not selected?

Viewing 1 replies (of 1 total)
  • Plugin Support ACF Support

    (@acfsupport)

    Hi there,

    Could you try this:

    <?php 
    if( get_field('toi_12') == "08"){
    
    echo "A";
    
    }else{
    
    echo "B";
    
    }
    ?>
    

    Cheers.

Viewing 1 replies (of 1 total)

The topic ‘Defining checkbox conditions’ is closed to new replies.