How to add a comma in the list with multiple values?
-
I have a table created with ACF Views (ACF + WP taxonomy) and I would like to separate the values ??by a comma when there is more than one value. Example in the image.{% if tipo_de_solo.value %} <tr> <th>{{ tipo_de_solo.label }}</th> <td> {% for choice_item in tipo_de_solo.value %} {{ choice_item.title }} {% endfor %} </td> </tr> {% endif %} {% if tipos_de_planta.value %} <tr> <th> {{ tipos_de_planta.label }} </th> <td> {% for term_item in tipos_de_planta.value %} <a target="{{ term_item.target }}" class="acf-view__tipos-de-planta-link" href="{{ term_item.value }}"> {{ term_item.linkLabel|default(term_item.title) }} </a> {% endfor %} </td> </tr> {% endif %}
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘How to add a comma in the list with multiple values?’ is closed to new replies.