I am using ACF repeater plugin on my wordpress site to generate simple gallery. this si the code in my tempalte file:

<?php if( have_rows('gallery') ): ?>
<ul class="slides">                              
  <?php while( have_rows('gallery') ): the_row();                        
  // vars
  $image = get_sub_field('gallery_images');                          
<li class="slide">                                   
  <img src="<?php echo $image['url']; ?>" alt=""/>               
<?php endwhile; ?>                               
<?php endif; ?>

And this is html output on frontpage:

<ul class="slides">                                 
 <li class="slide"><img alt="" src="h"></li>

The image src outputs “h”… I have double checked and the sub_field “slider_images” is set to be Image URL.
I copied the code from documentation, didn’t change anything.
What am I missing?

Read more here: ACF Repeater field doesn’t output images


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: