Did you check the Advanced Custom Fields documentation? You can check how the repeater fields work here: https://www.advancedcustomfields.com/resources/repeater/
You’ll see that you can do the following to show your ACF repeater images on the front-end:
if ( have_rows('carousel_repeater') ) :
while ( have_rows('carousel_repeater') ) : the_row();
$yourImage = get_sub_field('carosuel_image');
if ( $yourImage ) :
echo wp_get_attachment_image( $yourImage, 'full' );
endif;
endwhile;
endif;
Above snippet assumes that your Image Field is set to ID. If your Image Field has another return type, see https://www.advancedcustomfields.com/resources/image/.
Related Posts:
- ACF: Only get first row of a Repeater Field
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- WordPress as a backend only. How to output database content on public side without WordPress?
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Conditional statement for parent, child and grandchild pages
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Can an array be used as a meta_query value?
- How to attach a uploaded video to post from front end
- ACF check if variable has http, if else return string
- Advanced Custom Fields: Post Object – Not returning data [closed]
- 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?
- ACF page while loop breaks footer while loop
- Change output based on text field value
- ACF: how do I get the fields and its values of a specific group?
- Saving an array of dynamic repeater data as post_meta
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Remove the first 5 characters of the_title and orderby that
- Unread Repeater field IMG alt not working
- Slick + PHP + ACF + JQuery slide reveal not working
- WordPress Multiple Navigation bars
- multiple taxonomy select display only one in front end
- Using Select HTML in Bootstrap Popovers
- Advanced Custom Fields not displaying
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- ACF put a comma after the last repeater field value [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Form search query – displaying ACF “Post Object” field as results
- 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
- How can I count ACF sub_field with a certain value
- Bootstrap Carousel HTML structure and funny output [closed]
- create front-end users post list by specific category
- Handling repeater data
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Posts are not looping through correctly
- Advanced Custom Fields [closed]
- Get the featured image url of clicked post
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- Including Custom fields within the_content
- Get All In One SEO Pack to use custom field instead of Content
- Update user repeater meta (ACF) with another user meta field value
- Foreach loop is unexpectedly outputting an extra empty a tag
- How to store checkbox data for individual users?
- Problems updating nested ACF field groups
- Get main parent category for post (WordPress/Advanced Custom Fields)
- Creating plugin with front-end pages
- Set ACF on order during checkout
- If Statement is Ignored?
- Query on a repeater date (acf)
- ACF values to Script with auto refresh
- ACF – Can’t get custom post type by taxonomy
- ElseIf Statement with ACF Group field
- Split post or page content in two or more columns
- Advanced Custom Forms PHP formatting for do_shortcode
- Possible to edit custom date field and display?
- Get field value and use as variable in php
- ACF Gallery field images donwload
- ACF – Get ID of relationship field in flexible content
- Gutenberg blocks shortcodes compatibility
- How to bind each “the_content” elements to a custom variables
- ACF under category name in shop page [closed]
- Get list of posts from attachment
- Pulling Products from an API
- Posts in two different columns Bootstrap
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- ACF background-color per post in a WordPress loop
- How can I copy an ACF field to AIOSEO field? [closed]
- PHP code printed into CSS classes
- Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled
- Make sticky post with FacetWP
- PHP for loop not working as intended
- Position a repeated article blocks
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Problems with the WordPress loop [closed]
- Custom Thumbnails [closed]
- Else if Statement for Advanced Custom Fields [closed]
- Retrieving specific images from Media Library
- ACF Images If/else
- add class to background image
- Front end post submissions do not get submitted in the category
- Page returning ID from array, how to return the correct values for post in acf wordpress
- How to set up an auto delete post?
- Display WP posts in 3 responsive columns
- the_post_thumbnail unless video id is added
- get_category only returning details for ‘uncategorized’
- Add comma between variables [closed]
- ACF Date fileds to Age Convert [closed]
- Order woo products, but first products must be with acf fields
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- How to improve wordpress site creation process to increase productivity.
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- How can I get values from a custom post type depending on where I click on my SVG map?
- Creating posts with php-script + csv
- ACF number less than comparison not working