Created
March 29, 2013 12:21
-
-
Save leanda/5270498 to your computer and use it in GitHub Desktop.
WordPress: List custom taxonomy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php | |
// list product categories | |
$orderby = 'name'; | |
$show_count = 0; | |
$pad_counts = 0; | |
$hierarchical = 1; | |
$taxonomy = 'brands'; | |
$title = ''; | |
$args = array( | |
'orderby' => $orderby, | |
'show_count' => $show_count, | |
'pad_counts' => $pad_counts, | |
'hierarchical' => $hierarchical, | |
'taxonomy' => $taxonomy, | |
'title_li' => $title | |
); | |
wp_list_categories($args); | |
?> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment