Commit 4fa9d076 authored by imac's avatar imac

[Bugfix] map index start from 0

parent 4180106a
...@@ -51,7 +51,7 @@ $post_ID = 157; ...@@ -51,7 +51,7 @@ $post_ID = 157;
<?php <?php
if (get_field('zones_commerciaux', $post_ID)): if (get_field('zones_commerciaux', $post_ID)):
$i = 1; $i = 0;
while (has_sub_field('zones_commerciaux', $post_ID)) : while (has_sub_field('zones_commerciaux', $post_ID)) :
?> ?>
<div class="commercial commercial-details" data-zone = "zone<?php echo $i; ?>"> <div class="commercial commercial-details" data-zone = "zone<?php echo $i; ?>">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment