Home Forums ACF PRO Repeater not working on tag pages


Repeater not working on tag pages

  • So for some reason my repeaters work fine on all other pages but my tags page, and I can’t figure out why. It seems to be a problem with the
    while(has_sub_field('locations', 19)):
    because I can’t pass it.

    This is my code

    <? if(get_field('locations', 19)): ?>
    	<? while(has_sub_field('locations', 19)): ?>
    		<strong><? the_sub_field('location'); ?></strong>
    		<? if( have_rows('rows') ): ?>
    			<? while( have_rows('rows') ): the_row();?>
    				<? if( get_sub_field('link')) : ?>
    					<a href="<?the_sub_field('link');?>"><?the_sub_field('text');?></a>
    				<? else : ?>
    				<? endif; ?>
    			<? endwhile; ?>
    		<?php endif; 
    	endwhile; ?>
    <? endif; ?>

    and this is what is displaying
    tag pages
    tag page

    all other pages
    all other pages

    I’ve also tried removing repeaters and just using wyswyg but that return empty too
    <?php the_field('locations', 19); ?>

    Do you know what could be the problem?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.