Home › Forums › General Issues › Sorting CPT taxonomy terms › Reply To: Sorting CPT taxonomy terms
Thank you.
So, this is what I ended up with. It works well.
Do you see any issues there? Thanks again.
<?php $terms = get_terms(array( 'taxonomy' => 'artist', 'meta_key' => 'hide_artist', 'meta_value' => 'active' )); ?>
<?php foreach($terms as $term) {$term_link = get_term_link( $term ); echo '<li><a href="' . esc_url( $term_link ) . '">' . $term->name . '</a></li>';} ?>
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.