Skip to content

Instantly share code, notes, and snippets.

@leanda
Created March 29, 2013 12:21
Show Gist options
  • Save leanda/5270498 to your computer and use it in GitHub Desktop.
Save leanda/5270498 to your computer and use it in GitHub Desktop.
WordPress: List custom taxonomy
<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