Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args=array(
- 'public' => true,
- '_builtin' => false
- );
- $output = 'names'; // or objects
- $operator = 'and';
- $taxonomies=get_taxonomies($args,$output,$operator);
- if ($taxonomies) {
- foreach ($taxonomies as $taxonomy ) {
- $terms = get_terms($taxonomy);
- foreach ( $terms as $term) {
- ?>
- <li><br><a href="#"><input type="checkbox" name="profile[]" value=""><?php echo $term->name; ?> <br/></a></li>
- <?php
- }
- }
- }
- ?>
- $terms = get_terms([
- 'taxonomy' => $taxonomy,
- 'hide_empty' => false,
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement