Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. $args=array(
  3. 'public' => true,
  4. '_builtin' => false
  5. );
  6. $output = 'names'; // or objects
  7. $operator = 'and';
  8. $taxonomies=get_taxonomies($args,$output,$operator);
  9. if ($taxonomies) {
  10. foreach ($taxonomies as $taxonomy ) {
  11. $terms = get_terms($taxonomy);
  12. foreach ( $terms as $term) {
  13. ?>
  14. <li><br><a href="#"><input type="checkbox" name="profile[]" value=""><?php echo $term->name; ?> <br/></a></li>
  15. <?php
  16. }
  17. }
  18. }
  19. ?>
  20.  
  21. $terms = get_terms([
  22. 'taxonomy' => $taxonomy,
  23. 'hide_empty' => false,
  24. ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement