I have a custom checkbox field created in WordPress where the user can select various facilities available at a listed property.
I am building a page template using Elementor.
When I import the data from ACF, it displays as a comma separated list.
Is there any way I can instead get this to display as as a bulleted list?
3
Answers
Here is a code to get the output data from ACF as a bulleted list –
I hope this is what you are looking for.
You could try using a plugin that let’s you create php code snippets and run them with a shortcode such as this: https://it.wordpress.org/plugins/insert-php/
Once you created the php snippet you could try to run it with a shortcode using Elementor’s shortcode widget.
I’d slightly adjust Tahmid’s excellent answer. In order to allow for empty lines (without a bullet) use this in you
functions.php
file:Call this with
acf_bullets('your-fieldname-here');