<?php
$args=array(
'public' => true,
'_builtin' => false
);
$output = 'names'; // or objects
$operator = 'and';
$taxonomies=get_taxonomies($args,$output,$operator);
if ($taxonomies) {
foreach ($taxonomies as $taxonomy ) {
$terms = get_terms([
'taxonomy' => $taxonomy,
'hide_empty' => false,
]);
foreach ( $terms as $term) {
?>
<li><span class="filter active" data-filter=".<?php echo $term->slug; ?> "><?php echo $term->name; ?>
</span></li>
<?php
}
}
}
?>