list terms in a given taxonomy

  • 0

If we want to list all terms in a taxonomy “writer”:

$writers= get_terms( array(
    'taxonomy' => 'writer'  
) );
print_r($writers);
foreach($writers as $writer){
  echo $writer->name."<br />";
}
 

If we want to list all terms in a taxonomy “writer”: $writers= get_terms( array( ‘taxonomy’ => ‘writer’ ) ); print_r($writers); foreach($writers as $writer){ echo $writer->name.”<br />”; }  

If we want to list all terms in a taxonomy “writer”: $writers= get_terms( array( ‘taxonomy’ => ‘writer’ ) ); print_r($writers); foreach($writers as $writer){ echo $writer->name.”<br />”; }