Un utente ha chiesto informazioni su Custom Field Suite di Wordpress

Giostra con anello

Un utente ha chiesto ๐Ÿ‘‡

Salve, desidero creare una rotatoria con bootstrap4 e eseguire il loop della Field Custom Suite:
gallery_images = CFS () -> get (‘gallery_images’);
foreach ($ gallery_images as $ image)
macalla ”;

Mi puoi aiutare ??, grazie !!

Lanciatore di thread

(@iok)

2 anni, 10 mesi fa

Lavoro con questo …

<div id="carouselExampleControls" class="carousel slide" data-ride="carousel">

    <?php $gallery_images = CFS()->get('gallery_images')?>
    <?php $i=0; foreach ($gallery_images as $image){?>
         <?php if($i==0){ ?><div class="carousel-inner"><?php } ?>
             <?php if($i % 2 == 0){ ?><div class="carousel-item active"><?php }?>
                  
                        <? echo '<img class="d-block w-100" src="'.$image["image"].'"/></div>'?>
                 
                        <?php if($i % 4 != 0){ ?></div><?php }?>
                      <?php $i++; } ?>
                 </div>
               
  <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
    <span class="sr-only">Previous</span>
  </a>
  <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
    <span class="carousel-control-next-icon" aria-hidden="true"></span>
    <span class="sr-only">Next</span>
  </a>
</div>

Questa risposta รจ stata modificata 2 anni, 10 mesi fa da. Questa risposta รจ stata modificata 2 anni, 10 mesi fa da.

Was this helpful?

0 / 0

Lascia un commento 0

Your email address will not be published. Required fields are marked *