Display categories from custom post type

What about using get_terms()?

Quick example:

$terms = get_terms('portfolio-category');

foreach ( $terms as $term ) {
   echo $term->name.'<br />';
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)