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

How Can We Help?
< Back
You are here:

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’));?>

Previous How can I make a reference between two directories?
Next I added a field to a content type but it isn’t displaying on the frontend?
Table of Contents