ACF True False

* Single Value * <?php if( get_field('enable_scroll') ): ?> // do something <?php endif; ?> * Multiple Values * <?php if( get_field('enable_sidebar') ): ?> <?php // do something ?> <?php endif; ?> <?php if ( 'yes' == get_field('field_name') ): ?> If true do this <?php else: ?> If false do this <?php endif; ?>
ACF True False

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.