You want to start here and here.
Essentially you’re just looping through all your posts like normal and then adding some custom fields into it.
Be sure to reference the Repeater Field documentation.
This should work inside a loop. Notice you’ll need your post ID.
<ul>
<?php
if( have_rows('YOURREPEATERFIELDNAMEHERE', 'POSTIDHERE') ):
while ( have_rows('YOURREPEATERFIELDNAMEHERE', 'POSTIDHERE') ) : the_row(); ?>
<li><?php echo get_sub_field('SUBFIELDNAMEHERE'); ?></li>
<?php endwhile;
else :
// no rows found
endif;
?>
<?php endwhile; ?>
</ul>
Related Posts:
- Can an array be used as a meta_query value?
- Looking for most performant way to execute several similar WP queries within shortcodes
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Form search query – displaying ACF “Post Object” field as results
- Remove Post if Advanced Custom Field is checked to fix paging
- Nested Queries of decreasing specificity
- Use WPQuery to match to specific repeater row in post
- Query on a repeater date (acf)
- Ordering / grouping posts by datepicker ACF
- Best Practice for PHP
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- how to display active, upcoming and past event with featured listing with pagination
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- Get list of WP Updates Across Sites
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- if statement on database query
- WP_Query sort using multiple numeric meta values
- How to get to a specific position in wp_query?
- API response to be stored locally
- WP_Query loop, does not display special characters in title correctly
- Remove query string specific key value
- Importing hard coded custom field into acf field
- Strip characters, Including spaces, for tel: link
- How can I add multiple ‘tax_query’ arrays via a loop?
- Change output based on text field value
- Using foreach loop breaks
- Saving an array of dynamic repeater data as post_meta
- Unread Repeater field IMG alt not working
- Get users that likes the post
- Slick + PHP + ACF + JQuery slide reveal not working
- inserting a post from an extern php file but post content doesn’t show on wp site
- Advanced Custom Fields not displaying
- Create a Blog Template Page
- Exclude posts with specific metadata from search?
- Display an image if odd number of posts in grid
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to show meta value code HTML after x paragraph
- get_the_ID() doesnt work
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- Conditional multidimensional arrays and array_map
- change the default order of posts only for specific categories
- extract serialized array to use for wp-query
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How can I split my query result in 2 arrays?
- Order a WP_Query by meta value where the value is an array
- How do I check if there is a tag in the title
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- Get All In One SEO Pack to use custom field instead of Content
- Using multiple variables to assign categories to an array
- the_post(); prints out style text into my HTML?
- Let current user know pending posts counts using wp_query
- Foreach loop is unexpectedly outputting an extra empty a tag
- get_terms with specific id order
- How to store checkbox data for individual users?
- “pre_get_posts” orderby custom date field in different format?
- WordPress Search Ajax + Isotope + InfiniteScroll
- Problems updating nested ACF field groups
- wp_query – Exclude the first thumbnail from lazy loading on archives
- How to call my PHP function with AJAX ? wp_query
- Usermeta data unserialize, extract and display in table in WordPress
- If Statement is Ignored?
- can I extend the WP_Query class to deal with ‘duplicate’ posts created by joining to wp_posts?
- ACF values to Script with auto refresh
- Trying to get pagination working on WP_Query() post grid
- Possible to edit custom date field and display?
- Check the database for a postmeta field
- ACF under category name in shop page [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- ACF background-color per post in a WordPress loop
- How can I copy an ACF field to AIOSEO field? [closed]
- How to display last whole post on the homepage
- Make sticky post with FacetWP
- PHP for loop not working as intended
- How to return count of items found in SQL query
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- wp_query beginner
- Else if Statement for Advanced Custom Fields [closed]
- For each 3 posts, show a different post type
- WooCommerce – Print Processing orders [closed]
- List of child pages fetch next results at link click
- Query category-specific, paginated posts and allow viewer to change sort order
- wordpress is_main_query() breaks
- How to get category pages to look like a certain archive page?
- Post Title Not showing up
- reorder a WP_Query, using a dropdown
- Custom query_posts() parameter
- Why does a meta_query break this WP_Query?
- ACF Date fileds to Age Convert [closed]
- How to modify this function to exclude also the post belonging to a specific category?
- Order woo products, but first products must be with acf fields
- Display biography post for today’s birthday person
- How do I run the following script from my articles page?
- How to initialise WP_Query on the basis of a specific meta_value and continue iterating rest?
- Three different queries on same page
- How to sort search result by post_title, then by post_content
- ACF number less than comparison not working
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress