0
I’m trying to return only the list of taxomanias
of a custom post type
called "Portfolio". I only need the category names.
The code below is returning the categories with links, someone knows how to delete these links?
$taxonomy_names = get_object_taxonomies('portfolio');
if(count($taxonomy_names) > 0)
{
foreach($taxonomy_names as $tax)
{
$args = array(
'orderby' => 'name',
'hide_empty' => 0,
'show_count' => 0,
'pad_counts' => 0,
'hierarchical' => 1,
'taxonomy' => $tax,
'title_li' => ''
);
wp_list_categories($args);
}
}