I can’t seem to get the repeater field to show up on a category template file(category-307.php).
My code:
<div class="cell">
<?php if (have_rows('bottom_repeater', 'option')): ?>
<?php while (have_rows('bottom_repeater', 'option')): the_row();
// vars
$leftContent = get_sub_field('l_editor', 'option');
$rightContent = get_sub_field('r_editor', 'option');
?>
<?php if ($leftContent): ?>
<p><?php the_sub_field('l_editor'); ?></p>
<?php endif; ?>
<?php if ($rightContent): ?>
<p><?php echo $rightContent; ?></p>
<?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
</div>


Am I putting , 'option'
too many times or in the wrong place? Does it matter that this is a Custom Post Type?
I’ve used the Basic & Advanced loop from the Repeater Field Instructions. Still no good.
Your help is very appreciated 🙂
-Luke
This reply has been marked as private.