- This topic has 1 reply, 2 voices, and was last updated 5 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Change output layout of dropdown box items in custom field.
I’ve got a “dropdown (multiple)” field type (events custom field) where admins can select items for a particular meeting, in this case, food/menu options. They display properly on the back-end, but when showing it in my custom template as #_FIELD{custom_field_name} it is showing two pipes between each item with no space. Is there a way to change this formatting to something else? Comma separated, or perhaps a sorted or unsorted list?
For example, the backend choices show each item on a new line (as it says to do on the page) but the output on my actual event page shows as “Item 1||Item 3||Additional Item4”
This change should help you:
“Allow a separator to be specified for multi-value custom fields when printing the values via #_FIELD or #_FIELDVALUE”
Change: https://plugins.trac.wordpress.org/changeset/2008007/