The first code snippet is in single.php and indicates the employee that was entered in the post. The second code snippet displays in a separate page template only the selected employees, which are selected by post object.
If I omit the if(get_field) statement for profile_phone and profile_mail, it works because the entries are always given in each case. But I don’t understand why nothing is displayed if the if(get_field) statement exists.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users