I'm using the Advanced Custom Fields plugin to place a taxonomy checkbox on certain pages.
This checkbox will filter the data that is pulled through etc on that page.
Using the example found on the ACF website (which aims at using the term object output) -
<?php $terms = get_field('taxonomy_field_name'); if( $terms ): ?> <ul> <?php foreach( $terms as $term ): ?> <h2><?php echo $term->name; ?></h2> <p><?php echo $term->description; ?></p> <?php endforeach; ?> </ul> <?php endif; ?>
I can't seem to get any data to come through and when i var dump the variable, all i am left with is NULL. This code example above has been placed in the pages normal loop etc. If i change the output to show the ID however, i can see the category ID for each of the selected checkboxes.
Is there any reason why the object term would be coming up as a null array instead of showing me the slug names etc?