Hide specific taxonomies from a taxonomy list using ‘get_object_taxonomies’
Try this: <?php $object=”post”; $output=”objects”; $taxonomies = get_object_taxonomies( $object, $output ); $exclude = array( ‘post_tag’, ‘post_format’ ); if ( $taxonomies ) { foreach ( $taxonomies as $taxonomy ) { if( in_array( $taxonomy->name, $exclude ) ) { continue; } $terms = get_terms( array( ‘taxonomy’ => $taxonomy->name, ‘hide_empty’ => true, ) ); if ( ! empty( $terms … Read more