Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $tax_one = 'Project Type';
- $post_type = 'portfolio';
- $categories = get_categories( array(
- 'type' => $post_type,
- 'orderby' => 'name',
- 'order' => 'ASC',
- 'hide_empty' => 0,
- 'hierarchical' => 1,
- 'taxonomy' => $tax_one ));
- foreach ( $categories as $category ) :
- echo '<li>'.$category->name.'</li>'?>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement