Support

Account

Home Forums Front-end Issues Display all checkbox options and apply class to those that are checked Reply To: Display all checkbox options and apply class to those that are checked

  • Getting values:
    Either this:

    
    $tier = get_field('tier');
    $values = $tier['available_features'];
    

    or this:

    
    $values = get_field('tier_available_features');
    

    or this:

    
    while(have_rows('tier')) {
      the_row();
      $values = get_sub_field('available_features');
    }
    

    getting the field object:
    this:

    
    $field = get_field_object('field_XXXXXXX'); // field key
    

    or

    
    $field = get_field_object('tier_available_features');
    

    or

    
    while(have_rows('tier')) {
      the_row();
      $field_object = get_sub_field_object('available_features');
    }