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:
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