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 />";
}