I assume by “blank space” you’re referring to the line break (<br />
). Easy fix. Just include the break inside the if
so that it will only render if the field is not null.
Example:
<?php
if (get_field('apelativo')) {
_e('Apelativo: ','csc-themewp: '); the_field('apelativo');
echo '<br />';
}
?>