Get all Categories/Taxonomies of CPT
<?php
$args = array(
‘taxonomy’ => ‘product_category’,
‘orderby’ => ‘ID’,
‘order’ => ‘DESC’
);
$cats = get_categories($args);
foreach($cats as $cat) {
?>
<?php
$args = array(
‘taxonomy’ => ‘product_category’,
‘orderby’ => ‘ID’,
‘order’ => ‘DESC’
);
$cats = get_categories($args);
foreach($cats as $cat) {
?>