// SingleNetwork function SingleNetwork() { global $post; $term = get_the_terms( $post->ID, 'networks' ); if ( ! is_wp_error( $term ) && ! empty( $term ) ) { $firstTerm = $term[0]; $term_link = get_category_link($firstTerm->term_id); echo '<a href="' . $term_link . '" rel="tag">' . $firstTerm->name . '</a>'; } }
foreach ( $terms as $term ){ if ($count term_id); echo '' . $firstTerm->name . '',''; $count++; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)