Tạo gallery bằng custom field trong flatsome

<?php  
      $images = get_field('project_gallery');
      
      if( $images ): ?>
          <ul class="pgwSlideshow">
              <?php foreach( $images as $image ): ?>
               <li><img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" ></li>
              <?php endforeach; ?>
         </ul>
      <?php endif; ?>