ID, 'categoria', true); // check if the custom field has a value $args = array('taxonomy' => 'portfolio-category', 'order' => 'ASC', 'slug' => $categoria); $categories = get_categories($args); $size = count($categories); foreach ($categories as $index => $cat) { $slash = ($index != $size) ? '/' : ''; echo '

GALERÍAS · ' . $cat->name . '

'; } ?>
.