Why doesn't the ACF repeater on the main page?

Greetings, experts!
Please explain why not a loop on the Main page?
Trying to get through the repeater ACF custom fields, but the only thing that appears is this:
<div class="row">
::before
::after
</div>

Tobish essentially nothing.
Here is the code which I want to run
<div class="row">

<?php if(get_field('index_ads')): while(has_sub_field('index_ads')): ?>
<div class="col-xs-12 col-md-6">
<a href="<?php the_sub_field('index_ad_link', 'option'); ?>"><img src="<?php the_sub_field('index_ad_img', 'option'); ?>" class="img-responsive m30t"></a>
</div>
<?php endwhile; endif; ?>

</div>
April 4th 20 at 13:28
2 answers
April 4th 20 at 13:30
Solution
where the created field index_ads? on the options page? I think you just have the condition is not triggered, fill there, too, 'option'
Thank you - sean.Kautzer commented on April 4th 20 at 13:33
April 4th 20 at 13:32
First you need to get the data into a variable and then output the variable using echo
acf.wp-book.ru/povtoritel

Find more questions by tags WordPress