Hi
I am unable to get values added in repeater fields on category page. Please see two codes given below. One is with the repeater field.. And second is a simple text field. Text field is working but repeater field is not working… I don’t if it is a bug or I am making any mistake.
In the code ‘custom_field_labels’ is parent repeater field and ‘custom_field_label’ is a child sub-field.
<?php // This is NOT working ?>
<?php while(has_sub_field('custom_field_labels', 'category_3')): ?>
<?php the_sub_field('custom_field_label'); ?>
<?php endwhile; ?>
<?php // This is working ?>
<?php the_field('comparison_chart_url', 'category_3'); ?>
Thanks
I have solved the issue… Just created new fields without using underscores ‘_’ in the field_name and it is working… Does this make any difference?
Thanks
Hi @amanvirk1982
Yes, ACF fields are not to be used with an underscore in-front of them,
Thanks
E