How to implode two individual fields:
I also want to hide h2 if both fields are empty. I’m not sure where to put php tags?
if (get_field('father') {
$values[] = get_field('father');
}
if (get_field('mother') {
$values[] = get_field('mother');
}
if (!empty($values)) {
echo implode(', ', $values);
}