Why won't $i count up one each time with the following code?
<?php if(get_field('staff_member')) { ?>
<div class="row-fluid">
<?php while(has_sub_field('staff_member'))
{
for($i = 0; $i <= 1; $i++)
echo '<div class="span3 mobile_width' . $i . '">
.....etc...
}
echo '</div>';
}
?>
The output has 4 items and they all return with the the class mobile_width0.
And it also outputs 2 of each item.