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
- Add up all numbers from a WordPress query [closed]
- How do I use WP_query with multiple post IDs?
- Inject post (from specific category) between posts in Loop
- is_page() not working from within a plugin
- Passing JSON data from WP Query into AJAX causing NULL errors
- AJAX / Read More: multiple check_ajax_referer() and wp_create_nonce() not working independentely
- Display certain amount of posts on taxonomy archive page
- How to add 2 posts under another post? Formatting should be intact
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Count number of published posts by type
- How to display custom field on homepage
- Can’t increase posts_per_page by variable
- Get taxonomy terms only of the WP_Query current posts
- ACF check if variable has http, if else return string
- Get category name from custom loop and echo it once
- Hide post if matches current month and year
- Use WP_Query in shortcode
- Why is variable not working on custom sql query using wpdb?
- How to do multiple searches (with logical OR) in WP_Query in hook pre_get_posts?
- get current custom post ID by WP_Query method
- How to securely provide a $_POST var in WP_Query with PHP 7?
- Create WP_Query to search for posts by their categories or their parent/child categories
- If Query In Sidebar
- ACF: how do I get the fields and its values of a specific group?
- Dynamic content based on a URL parameter
- Remove the first 5 characters of the_title and orderby that
- Redirect to another page using contact form 7? [closed]
- Fatal error: Call to a member function query() on a non-object
- Is it possible to retrieve all posts with a certain value for metadata?
- Trouble inputting variable into WP query
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- Array to string conversion on array_map
- Target post_date_gmt if it’s empty or not set
- ACF Repeater Pagination stopped working since upgrade to php7.2
- Get all posts as an array ID => Name
- what is the method to echo class attribute inside the i tag? [closed]
- Passing an array into WP_Query as a variable
- Custom query vars filters problem with pagination
- WordPress meta_query >= &
- Do not duplicate posts with multiple categories in multiple loops
- Show get_sub_field value if it exists [closed]
- Dividing the loop to style post differently
- Displaying Event within two given time frames
- WordPress SQL JOIN query
- WP_Query and help with the loop for magazine front page
- Search AJAX Filters – Multiple Query Loops Into One Loop (Optimization)
- WP_Query: How to get results from both meta_key options?
- How to WP_Query posts order by parent title?
- search.php to search only the post title
- Output product category link from WP_Query
- Delete images from media library when user deletes an image from ACF Gallery
- Passing in MySQL prepare statement parameter separately throwing error
- Load more posts using AJAX based on posts inside WP_Query
- Custom search query on WordPress page not working
- How to select post ID for given parent name with nested prepared queries?
- posts_per_page displays only 2 posts instead of 4 posts
- WP_QUERY post_in problem
- how to get data from two different table from wordpress database
- ACF relationship on user profile page used for allowed access
- Advance custom fields variable with if statement & Function
- Place product field value as variable in php
- Need to show 7 posts from actual date
- Add code to the header of posts by particular author
- Paged WP_Query is quitting on page 3
- Get Child of Child Pages in custom Menu
- WordPress search query, how to modify the sql
- Modify post image in full size
- Wp-query output correct, but the loop shows one less item (only sometimes)
- Get list of posts from attachment
- How to output values from a loop into a javascript array
- Making list of posts with chosen description
- Include search tags and users in my search results system
- Add custom taxonomy to custom search for posts
- My query keeps looping infinitely ! how to stop it?
- How to add thumbnails from recent posts to owl-carousel in wordpress automatically?
- Only Get A Certain Number of Posts From WP_Query
- Querying posts based off a jquery datepicker
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Use custom get results query to show posts WordPress
- the_post_thumbnail unless video id is added
- WP Query conflict on tag.php and category.php template
- Does wp_query and query_posts affect website performance? [duplicate]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- WP query with variables gives no result for specific user
- Display all categories (with link) of custom post type – WordPress
- How can I get values from a custom post type depending on where I click on my SVG map?
- a problem in class in class-wp-hook.php
- AJAX WP_Query’s order and orderby parameters not working
- Add adjacent post function inside custom recent post function
- How do I exclude the current post from the upcoming post query
- How to create advanced custom fields for backend content