Support

Account

Home Forums ACF PRO Get taxonomy terms from custom loop Reply To: Get taxonomy terms from custom loop

  • Thanks James

    To confirm, the terms are being saved, see here:

    http://cl.ly/3k3v062y240J

    When using this example – https://www.advancedcustomfields.com/resources/taxonomy/ – like so:

    <?php 
    
    $terms = get_field('key_tasks_list');
    
    if( $terms ): ?>
    
    <ul>
    
    <?php foreach( $terms as $term ): ?>
    
    <h2><?php echo $term->name; ?></h2>
    
    <?php
    
    echo '<pre>';
    
    var_dump( $terms );
    
    echo '</pre>';
    
    endforeach; ?>
    
    </ul>
    
    <?php endif; ?>

    I get NULL returned.

    Thanks