Advertisement
Guest User

Untitled

a guest
Nov 13th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2.  
  3. $args = array(
  4. 'hide_empty' => false,
  5. 'taxonomy' => 'trek_category',
  6.  
  7.  
  8. );
  9.  
  10. $catlists = get_terms( $args );
  11. foreach( $catlists as $category ){
  12. print_r($category);
  13. }
  14.  
  15. ?>
  16.  
  17. <strong>Region :</strong>
  18. <?php echo $category->name; ?>
  19.  
  20.  
  21. </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement