I am using ACF repeater fields and I am trying to write a function which counts the number of rows of the repeater. The function returns 1 even if the number of rows in a repeater are 0 or more than 0. Can someone help me to fix this ?
$rows = get_field('sub_seminars');
$row_count = count($rows);
echo count($row_count);
A var_dump
also returns int(1)
even if the number of rows in a repeater are 0 or more than 0.