I have a carousel in bootstrap, I wanted to do it with 3 images, as per example link
But I wanted to make it dynamic, here is my code below:
<div class='row'>
<div class='col-md-8'>
<div class="carousel slide media-carousel" id="media">
<div class="carousel-inner">
<?php $i = 1;?>
<?php foreach ($anuncios as $anuncio) :?>
<?php $item_class = ($i == 1) ? 'item active' : 'item'; ?>
<div class="<?=$item_class;?>">
<div class="row">
<div class="col-md-4">
<img src="imagens/usuarios/<?=$anuncio['nome_thumb']?>" alt="<?=$anuncio['nome_thumb'];?>">
</div>
</div>
</div>
<?php
$i++;
endforeach;
?>
</div>
<a data-slide="prev" href="#media" class="left carousel-control">‹</a>
<a data-slide="next" href="#media" class="right carousel-control">›</a>
</div>
</div>
</div>
</div>
So, it's not 3 in 3, so it's only 1 in 1, how could I change it to 3 in 3?
Thank you.