Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $terms = wp_get_object_terms( $post->ID, 'name_category' );
- foreach ( $terms as $term ) {
- $term_link = get_term_link( $term );
- echo '<a href="' . esc_url( $term_link ) . '" class="category">' . $term->name . '</a>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement