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.
<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!