Tell us what you are trying to do?
I have example of looping names from a another View, but I can't seem to translate the loop for names from a field.
Here is what have:
<div class="gatherlist-author">by [types field="essay-author"][/types], [types field="publicationdate" style="text" format="F j, Y"][/types]</div>
And all I want to do is insert commas if more than one name on this [types field="essay-author"][/types]
Is there any documentation that you are following?
I have tried to follow examples, but I keep getting code in the output.
Is there a similar example that we can see?
What is the link to your site?
hidden link
Hi Will,
Thank you for contacting us and I'd be happy to assist.
For fields with multiple instances/values, you can use the "separator" attribute to include a separator of your choice:
https://toolset.com/documentation/customizing-sites-using-php/functions/#textfield
For example, for a comma-separated output, you can update your field shortcode to:
[types field="essay-author" separator=", "][/types]
I hope this helps and please let me know if you need any further assistance around this.
regards,
Waqar
My issue is resolved now. Thank you!