I added the taxonomies in my CPT. I taken this in the wordpress codex. Because I want that my taxonomie hasn't link on the a click. The code is okay but my problem i would like delete the place in the

. i don't understand for delete this balise.

It's possible ?

$terms = get_the_terms( get_the_ID(), 'on-draught' );

 if ( $terms && ! is_wp_error( $terms ) ) : 

$draught_links = array();

foreach ( $terms as $term ) {
    $draught_links[] = $term->name;

$on_draught = join( ", ", $draught_links );

<p class="beers draught">
    <?php printf( esc_html__( 'On draught: <span>%s</span>', 'textdomain' ), esc_html( $on_draught ) ); ?>
  • Did your sentence get cut off? "i would like delete the place in the" -- in the what? – NightHawk Mar 28 at 21:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.