Create unordered list from custom field type entires separated by a comma

If I understood you correctly, this should be pretty straight forward: $rawcontent = get_field(“myfield”); $rawcontent = preg_replace(“!</?p[^>]*>!”, “”, $rawcontent); // remove <p> $all_links = preg_split(“/\s*,\s*/”, $rawcontent); foreach($all_links as $link) { if(!trim($link)) continue; print “<li>$link</li>”; } A comma certainly would work, but note that this would break if you had commas inside the link text (<a … Read more