Support

Account

Home Forums Add-ons Repeater Field Repeater dont work footer page

Solving

Repeater dont work footer page

    • User321

    • February 14, 2021 at 7:43 am

    In H3 tag i used 47 – number footer page and field work. What do i need to do for <li>?

    https://sandbox.onlinephpfunctions.com/code/f0a0cb160a50430512e735865252f2c4c3d15431

  • 
    <div class="col">
    	<?php
    		$footer = get_field('footer', 47);
    				
    			if( $footer ): ?>
    				<h3><?php echo $footer['col-footer']['col-footer-h3'];?></h3>
    			<?php endif; ?>
    
    	<?php if( have_rows('col-footer-ul-li', 47) ): ?>
     		<ul class="social">
    
     			<?php while( have_rows('col-footer-ul-li', 47) ): the_row(); ?>
    
     			    <li><a href="<?php the_sub_field('col-footer-href'); ?>"><p><?php the_sub_field('col-footer-ul-li-p'); ?></p></li>
    	 
     			<?php endwhile; ?>
    					
    		</ul>
    	<?php endif; ?>
    </div>
    
Viewing 2 posts - 1 through 2 (of 2 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.