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

How Can We Help?
< Back
You are here:
Print

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:
Table of Contents