Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

show all terms of a custom taxonomy

$terms = get_terms( array(
  'taxonomy' => 'taxonomy_name_or_slug',
  'hide_empty' => true,
) );
foreach ($terms as $term){
  echo $term->slug;
  echo $term->name;
  echo "<br><br>";
}
 
PREVIOUS NEXT
Tagged: #show #terms #custom #taxonomy
ADD COMMENT
Topic
Name
7+6 =