Support

Account

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>';} ?>