Home › Forums › General Issues › Outputting checkboxes as unordered list › Reply To: Outputting checkboxes as unordered list
Gotcha. Okay that makes more sense. LOL. So, I had tried putting it on the template before with no luck. Now I get my UL dot, but no values are pulled in. My HTML is:
<h3>Website Features</h3>
<?php
$site_features = get_field('site_features');
if( $site_features ): ?>
<ul>
<?php
foreach( $site_features as $site_feature ): ?>
<li><?php echo $site_feature; ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
And, I get this:
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.