Home › Forums › Add-ons › Flexible Content Field › Flexible content with post object – fields are missing › Reply To: Flexible content with post object – fields are missing
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
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.