axxe16
5/4/2017 - 1:25 PM

stampa i valori per la tassonomia custom indicata per il post corrente #custom #tax #post

stampa i valori per la tassonomia custom indicata per il post corrente #custom #tax #post WPM

<?php

$id = get_the_ID();
$taxonomy = 'your-taxonomy';
$terms = get_the_terms( $id, $taxonomy );
foreach ($terms as $term) {

  // Here you can display the terms how you want

  echo 'TERM: '.$term->name;
}
?>