Something is missing
I tried this, but still it returns nothing! I added the loop so you could see the whole picture of what I’m doing
<?php if(get_field('details_of_each_climbing_route')): ?>
<?php while(has_sub_field('details_of_each_climbing_route')): ?>
<?php $RockClimbingImages = the_field('rock_climbing_gallery'); ?>
<section class="RockClimbingRouteGallery" style="margin-top:3em;">
<?php if( $RockClimbingImages): ?>
<ul class="list-inline" style="clear:both;">
<?php foreach( $RockClimbingImages as $image ): ?>
<li>
<a class="fancybox" rel="group" href="<?php echo $image['url']; ?>">
<img src="<?php echo $image['sizes']['thumbnail']; ?>" alt="<?php echo $image['alt']; ?>" /></a>
<p><?php echo $image['caption']; ?></p>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
</section><!--RockClimbingRouteGallery-->
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>