Tell us what you are trying to do?
I have a custom field that has data inputed as follows
More Features is the Custom Field, The content in the field looks like
Secure Parking, Outdoor Entertainment Area, Split System Air Conditioning, Built in Robes, Ducted Heating, Ceiling fans x2 in lounge, External awnings
I'm trying to output the fields without the commas and in an unordered list rather than how it is displaying now.
Is there a similar example that we can see?
hidden link
Thank you
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jaffa,
Thank you for getting in touch.
Could you send me a screenshot of what you are using to display this information on the frontend ?
This should guide me on how best to advise on a solution.
Thanks,
Shane
Hi Shane,
Just using a simple shortcode:
[wpv-conditional if="( $(wpcf-other-features) gt '' )"]
[types field='other-features' output='raw'][/types]
[/wpv-conditional]
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jaffa,
Try adding the separator attribute.
[wpv-conditional if="( $(wpcf-other-features) gt '' )"]
[types field='other-features' output='raw' separator=' '][/types]
[/wpv-conditional]
As you can see i've added an empty string for the separator value.
Please let me know if this helps.
Thanks,
Shane
That removed the commas but how do I arrange it in a unordered list.
Thanks
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jaffa,
While you are not able to get a true list you can break each term into its own line.
For the separator you can use the break tag.
[wpv-conditional if="( $(wpcf-other-features) gt '' )"]
[types field='other-features' output='raw' separator='<br />'][/types]
[/wpv-conditional]
This should break each of your selection into a new line.
Thanks,
Shane
Hi Shane,
That does not seem to work. If you look at the webpage it has not changed the output.
Sorry to be a pain
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Jaffa,
I managed to test this on my end and the items were displayed in a list.
When I checked your site and saw that the comma is still showing up.
Would you mind allowing me to have admin access to the site to check on this further for you.
Thanks,
Shane