get_cat_list() ) ) { return; } $cats = get_the_terms( get_the_ID(), ATBDP_CATEGORY ); ?>
term_id, 'category_icon', true ); $term_icon = atbdp_get_term_icon( array( 'icon' => $term_icon, 'default' => 'la la-folder-open', ) ); $term_link = esc_url( get_term_link( $cats[0]->term_id, ATBDP_CATEGORY ) ); ?> name ); ?> 1 ) : $totalTerm = $totalTerm - 1; ?>
+
term_id, 'category_icon', true ); $term_icon = atbdp_get_term_icon( array( 'icon' => $term_icon ) ); $term_label = trim( "{$term_icon} {$cat->name}" ); $term_link = esc_url( ATBDP_Permalink::atbdp_get_category_page( $cat ) ); $term_link = esc_url( get_term_link( $cat->term_id, ATBDP_CATEGORY ) ); echo "{$term_label}"; endforeach; ?>