Support

Account

Home Forums Add-ons Repeater Field Repeater sub_field is not working on pagination

Unread

Repeater sub_field is not working on pagination

  • Hello,

    In my theme’s footer i am using this code:

    <?php if( have_rows('footer_social', 'option') ): ?>
    <ul class="social_footer">
    	<?php while( have_rows('footer_social', 'option') ): the_row(); 
    		$icon = get_sub_field('social_icon');
    		$link = get_sub_field('social_link');
    		?>
    	<li>
            <a href="<?php echo $link;?>" target="_blank"><?php echo $icon;?></a>
        </li>
    	<?php endwhile; ?>
    </ul>
    <?php endif; ?>

    This works well on all pages, except for archive paginated pages, such as :
    site.com/category/page2

    The repeater field work, as i can see that by inspecting the code, but the subfields are not working.

    Can ony one help me?

    Thank you!

Viewing 1 post (of 1 total)

The topic ‘Repeater sub_field is not working on pagination’ is closed to new replies.