display taxonomy terms with link

You’ll need to use get_term_link(), e.g. change your $terms array to be HTML for the terms or links instead: foreach( $taxonomy_terms as $term ) { $term_link = get_term_link( $term->slug, $taxonomy ); if (! is_wp_error( $term_link ) ) { $terms[] = ‘<a href=”‘ . esc_url( $term_link ) . ‘”>’ . esc_html( $term->name ) . ‘</a>’; } … Read more

How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it

Try this one in your theme custom page or debugging page: <?php $args = array( ‘post_type’ => ‘offer’, ‘posts_per_page’ => -1 //show all posts ); $loop = new WP_Query($args); if($loop->have_posts()){ while($loop->have_posts()){ $loop->the_post(); $id = get_the_ID(); $tax = get_the_terms($id, ‘hotel’); print_r($tax); }//endwhile wp_reset_postdata(); }//endif