I can’t edit posts…
It’s displaying the values from first looped article. How to fix it?
I’ve fixed the problem, because I can’t use explode() and radio buttons. Now I’m using checkboxes, nevermind.
But I have an another problem, because the last checkbox (in the first and second checkboxes group) is always checked and label class is “selected”
<li>
<label class="selected">
<input type="checkbox" id="acf-field_5d9d111193121-ponad_60_minut" name="acf[field_5d9d111193121][]" value="ponad_60_minut" checked="checked"> ponad 1h
</label>
</li>
For example. I have a data-filter: colors, and three checkboxes:
– BLUE
– RED
– GREEN
and green is default checked, so when I check red I have two values checked.
What I can do to default disable those checkboxes?
The function which is creating the checkboxes is:
<?php create_field( $field ); ?>