Support

Account

Home Forums Add-ons Repeater Field turn original php for field group into repeater code

Solved

turn original php for field group into repeater code

  • I’ve just upgraded to the repeater add-on as I need multiple items.

    My original code is

    	<ul class="wine-list">
    		<?php while ( have_posts() ) : the_post(); ?>
    
    		<li class="wine-list-item">
    			<img class="wine-bottle" src="<?php the_field('wine_bottle'); ?>" />
    
    			<h2 class="wine-name"><?php the_field('wine_name'); ?></h2>
    
    			<p class="wine-description"><?php the_field('wine_description'); ?></p>
    
    			<a class="more-wine-info" href="<?php the_field('link_to_more'); ?>">More +</a>
    
    			<p><?php the_content(); ?></p>
    		</li>
    	<?php endwhile; // end of the loop. ?>
    </ul>

    How do I turn this into using the repeater code needed?

  • Hi @sturobson

    Have you read over and understand the repeater field documentation?
    http://www.advancedcustomfields.com/resources/field-types/repeater/

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘turn original php for field group into repeater code’ is closed to new replies.