
Hi! I am basically using a form to submit a front end post and am able to get all of the text fields to copy over easily. However, I have 2 fields causing issues. The first being a file upload field, and the second being a image upload field. Both fields allow for multiple files to be uploaded.
For the files I am simply looking to display the urls as a link. I have been able to get the php code to work with a single file just not multiple.
For the images I would like to create a slider and am starting with the base code in the docs which I listed below. I again am able to get a single image, just having an issue with the multiple images. I think I lack understanding with echo / repeater. Please Help!
File Base Code:
<?php if( get_field('file') ): ?>
<a>" >Download File</a>
<?php endif; ?>
Image Slider Code:
<?php
$images = get_field('gallery');
if( $images ): ?>
<div id="slider" class="flexslider">
<ul class="slides">
<?php foreach( $images as $image ): ?>
<li>
<img />" alt="<?php echo esc_attr($image['alt']); ?>" />
<p><?php echo esc_html($image['caption']); ?></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<div id="carousel" class="flexslider">
<ul class="slides">
<?php foreach( $images as $image ): ?>
<li>
<img />" alt="Thumbnail of <?php echo esc_url($image['alt']); ?>" />
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>