OK, so I've read like 20 different articles about using a while loop inside another while loop, but still can't get this to work, and I'm about to burst from frustration.
My scenario: using the Advanced Custom Fields plugin along with the WP Coda Slider. My goal is to display a small gallery of images (that are loaded via the ACF plugin, on a custom post type) inside a Coda Slider.
The images in the ACF are also using the Repeater addon for ACF. This requires the use of a while loop to output the images.
Facts: parent field for images: portfolio-images field key for images: image
php that ACF says will display the images:
<?php while(the_repeater_field('portfolio-images')): ?>
<a href="<?php the_sub_field('link'); ?>">
<img src="<?php the_sub_field('image'); ?>" alt="image" />
</a>
<?php endwhile; ?>
I'm already running this loop for the WP Coda Slider:
`
<div id="post-<?php the_ID(); ?>" <?php post_class('panel'); ?>>
<div class="panel-wrapper">
<div id="package-tagline-container" class="container_24">
<div class="bracket grid_1">{</div>
<div id="page-tagline" class="grid_16">
<h6><?php the_field('tagline'); ?></h6>
</div>
<div class="bracket grid_1">}</div>
<div id="package-title" class="grid_6">
<h4 class="title"><?php the_title(); ?></h4>
</div>
</div><!-- #package-tagline-container -->
<?php the_content(); ?>
</div> <!-- .panel-wrapper -->
</div> <!-- .panel -->
<?php endwhile; else:
endif;
wp_reset_query(); ?>
I don't know what else to try at this point. Any help is very appreciated. Thanks.