How can one make a single field display from two other fields?

You are here:
< Back

You’ll need to create a custom element template file. You might put the following code in the file:

<?php echo esc_html($entity->getSingleFieldValue(‘field_name’));?> – <?php echo esc_html($entity->getSingleFieldValue(‘field_surname’));?>

Tags: