Support

Account

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

Helping

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; ?>
    
    </div>
    

    options-page

    repeater-field

    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.
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Custom Category Template: Repeater on Options’ is closed to new replies.