← Back to Custom Fields Support
super.dev61838
Hi, I'm having issue to display repeating fields. It's just not displaying anything if I use repeating fields.
Blog Post Extra Field
Custom Fields Settings
Syntax
{% for item in post.getRepeatField('items') %}
<div class="col-md-3 py-2">
<span class="numbers odometer" id="1">{{ item.statsnumbers }} </span>
<span class="symbol">{{ item.statssymbol}} </span>
<h6>{{ item.statsdescription}}</h6>
</div>
{% endfor %}
Example Output with single fields
<div class="col-md-3 py-2">
<span class="numbers odometer" id="1">{{ post.getField('statsnumbers')}} </span>
<span class="symbol">{{ post.getField('statssymbol')}} </span>
<h6>{{ post.getField('statsdescription')}}</h6>
</div>
Last updated
Vladimir
Hi!
Try like this:
{% for item in post.getRepeatField('statsnumbers') %}
<div class="col-md-3 py-2">
<span class="numbers odometer" id="1">{{ item.statsnumbers }} </span>
<span class="symbol">{{ item.statssymbol}} </span>
<h6>{{ item.statsdescription}}</h6>
</div>
{% endfor %}
super.dev61838
Vladimir said:
Hi!
Try like this:{% for item in post.getRepeatField('statsnumbers') %} <div class="col-md-3 py-2"> <span class="numbers odometer" id="1">{{ item.statsnumbers }} </span> <span class="symbol">{{ item.statssymbol}} </span> <h6>{{ item.statsdescription}}</h6> </div> {% endfor %}
(Solved) Hi, It's working now. Thank you for helping.
1-3 of 3