Home › Forums › General Issues › Should I use conditional logic to display fields? › Reply To: Should I use conditional logic to display fields?
If you use the_field() on a field with no value then is simply will not output anything at all. There’s no need to check the field unless there is something else that is dependent on the value, for example a container element.
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.