Support

Account

Home Forums General Issues If a checkbox value is checked Reply To: If a checkbox value is checked

  • Thanks, Roberto. By using the following code (pasting it to check I’ve got it right), I see no change — it’s not showing anything for this particular field.

    <?php
    if ( in_array( 'in_stock', get_field('stock') ) ) 
    { ?>   echo '<pre>';
    var_dump(get_field('stock'));
    echo '</pre>';
    <?php } ?>