Here is what I put in the repeater template
<div class="hpk-newsletter">
<?php the_post_thumbnail('blog-thumb'); ?>
<div class="hpk-newsletter-info">
<a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
<?php the_excerpt(); ?>
<ul><!--
--><li><a href="<?php echo $english_pdf['url']; ?>" download="<?php echo $english_pdf['url']; ?>">View English (PDF)</a></li><!--
--><li><a href="<?php echo $spanish_pdf['url']; ?>" download="<?php echo $spanish_pdf['url']; ?>">View Spanish (PDF)</a></li><!--
--></ul>
</div>
</div>
The code I was using before I put it in the repeater template looks like this:
<?php if ( have_rows('newsletter_list') ): ?>
<?php while ( have_rows('newsletter_list') ): the_row();
$english_pdf = get_sub_field('english_pdf');
$spanish_pdf = get_sub_field('spanish_pdf');
?>
<?php $newsletter = get_sub_field('newsletter'); ?>
<?php if ( $newsletter ): ?>
<?php $post = $newsletter; setup_postdata($post); ?>
<div class="hpk-newsletter">
<?php the_post_thumbnail('blog-thumb'); ?>
<div class="hpk-newsletter-info">
<a href="<?php the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
<?php the_excerpt(); ?>
<ul><!--
--><li><a href="<?php echo $english_pdf['url']; ?>" download="<?php echo $english_pdf['url']; ?>">View English (PDF)</a></li><!--
--><li><a href="<?php echo $spanish_pdf['url']; ?>" download="<?php echo $spanish_pdf['url']; ?>">View Spanish (PDF)</a></li><!--
--></ul>
</div>
</div>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
I’m just not sure how to get the custom field data to pass into the ALM repeater.
Ahh, I didn’t even think of editing the css for the alm-btn-wrap. Thanks for that.