F
F
flare0n2018-11-20 18:50:40
Images
flare0n, 2018-11-20 18:50:40

How to make images in slick replaceable with ACF gallery + WP?

<div id="slider" class="content_slider" style="position: absolute;">
                          <?php 
      $images = get_field('gallery');

                    if( $images ): ?>
           <?php foreach( $images as $image ): ?>
             <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>">
           <?php endforeach; ?>
                    <?php endif; ?>
              </div>

Screenshot
5bf42cc2a9739464380045.png

It is required to make it so that if the administrator uploads new images to the gallery, then he selects certain photos in the setting. 5bf42d2d9a566344422093.png
Very weak in WP, please explain...
Above is the code, all I could. The images never showed up.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question