
I have been searching for a fix for this and have not found any solutions that have worked for me. It has to be something simple I am missing.
I have created a new Field Group > Field Type > Taxonomy with the multi checkbox appearance. Taxonomy is selected, Save Terms is selected and Load Terms is selected. I am using Term ID for the value.
I am using this snippet below, attached to a query, I got from this site to pull the values of the selected checkboxes on the front-end:
<?php $terms = get_field('app_sort_new'); if( $terms ): ?>
<ul>
<?php foreach( $terms as $term ): ?>
<li>
<h2><?php echo esc_html( $term->name ); ?></h2>
<p><?php echo esc_html( $term->description ); ?></p>
<a>">View all '<?php echo esc_html( $term->name ); ?>' posts</a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
The only taxonomy property that is being returned is the link with <?php echo esc_url( get_term_link( $term ) ); ?>
I have tried $term->slug;
and that does not work either.
What could I be missing here? No other name, description, slug anything is returned other than the link. Any help is greatly appreciated.
I assume this needs to go into a Front-end issue but I apologize if this is in the wrong spot. My first post here.