Home › Forums › ACF PRO › Choose wordpress tags shown in ACF field taxonomy (= do not show every term) › Reply To: Choose wordpress tags shown in ACF field taxonomy (= do not show every term)
Ok, that’s weird. Of course, I want to show the marked terms on my frontend. I used the code ‘Basic display (multiple terms)’ (https://www.advancedcustomfields.com/resources/taxonomy/) as it’s a checkbox, but no output is produced. It seems like the array is empty.
My code:
<p>Hier sollten die Tags stehen:
<?php $ttterms = get_field('ti_tag_test');
if( $ttterms ): ?>
<?php foreach( $ttterms as $ttterm ): ?>
<?php echo $ttterm->name; ?>
<?php endforeach; ?>
<?php endif; ?>
</p>
– I tried it with term object and term id.
– …with $ttterm->name and $ttterm alone.
– At least one term is checked.
What am I missing?
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.