John Huebner, thanks for feedback, I resolve this problem.
$total = 0;
$repeater = get_field('repeater');
if ($repeater) {
foreach ($repeater as $row) {
if (is_array($row['sub_field_name']) && $row['sub_field_name']['value'] == 'Value of field') {
$total++;
}
}
}
echo $total;
Tell, please, how to modify this code if field values contain decimals?
Ex.: 3.333+2.333=5.666 ($total must be 5.666)
Thanks!
Will be grate if you help me with cron job settings for this puzzle)
I want to use CF7, but I have one problem with date. Is there a way to pass the value of ACF (date field) to CF7 ? Example, if date is reserved – this date must be inactive in CF7 datepiker.