Home Forums Front-end Issues Custom Category Template: Repeater on Options


Custom Category Template: Repeater on Options

  • 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; ?>



    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 🙂

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.