Home › Forums › Add-ons › Flexible Content Field › Echo nothing if value is X › Reply To: Echo nothing if value is X
Pretty much yes, although I’d set the values of these fields to the actual class names if that I want to output so that I can simplify the code, you have not already
if (get_field('jumbotron_horizontal_alignment') != 'left') {
the_field('jumbotron_horizontal_alignment');
}
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.