How To Wrap Multiple Content Field Items In Li Tag I've got an issue with a field called Track Listing. As the title states it is a Text(plain) type with unlimited possible values so that I can input as many as I'd like. The machine name is: track_listing

As it stands I'm outputting the label and items using: {{ content.field_track_listing }} which gives me this: 



But I'd like to be able to wrap the field in an ol tag in addition to every track with a li tag to be able to get a nice ordered numbered list. Using twig templates I've wrapped it accordingly but find it only targets the first value which is in this case the label as seen here:



I feel that I should be using a for/if loop in order to get the right values since removing the label only wraps the first item as well. If anyone has an article I can check out to point myself in the right direction I would appreciate it, thank you.
You can easily theme a multiple value field in the field template.

To do this put a field twig in mytheme/templates:

field--field-track-listing.html.twig

&lt;div{{ attributes }}&gt;

  &lt;div{{ title_attributes }}&gt;{{ label }}&lt;/div&gt;

  &lt;ol&gt;
  {% for item in items %}
    &lt;li&gt;{{ item.attributes }}&gt;{{ item.content }}&lt;/li&gt;
  {% endfor %}
  &lt;/ol&gt;

&lt;/div&gt;


Here you can change the html markup around each field item {{ item.content }} the same way as you do this in node around the complete field {{ content.field_name }}. This is the concept of nested render elements.