• The ACF Support can’t read the values from a group of checkboxes. Say you have created ACF checkboxes with values 1 and 2. and you create a page, check the choice 1, go to a widget and set the widget to be hidden if the page has the value 1 checked. It makes no difference, the widget is shown on that page. If you set the widget to be displayed when the choice 1 is checked, the widget is hidden. So this “support” is pretty much next to nothing at the moment..

Viewing 1 replies (of 1 total)
  • Thread Starter Tuuuukka

    (@tuuuukka)

    It seems like this is where it goes wrong (from display.php):

    //handle repeater fields
    if( isset( $acf['value'] ) ){
       if( is_array( $acf['value'] ) ){
          $acf['value'] = implode(', ', array_map(function ( $acf_array_value ) {
              $acf_implode = implode( ',', array_filter($acf_array_value) );
              return $acf_implode;
          }, $acf['value']));
       }
    }

    Before this the $acf[‘value’] still has an actual value, but after these functions it’s gone.

    • This reply was modified 5 years, 5 months ago by Tuuuukka.
Viewing 1 replies (of 1 total)
  • The topic ‘ACF Support doesn’t work with checkboxes’ is closed to new replies.