Created
December 31, 2019 11:27
-
-
Save yankiara/003aa44ad810592c1137befe480cadfe to your computer and use it in GitHub Desktop.
Output ACF checkbox field seleted items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$items = get_field('FIELD_NAME'); | |
if( $items ): ?> | |
<ul> | |
<?php foreach( $items as $item ): ?> | |
<li><?php echo $item; ?></li> | |
<?php endforeach; ?> | |
</ul> | |
<?php endif; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment