Support

Account

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?