Custom Post Type with Custom Taxonomy in Bootstrap 4 Accordion
Here the solution: <?php $post_type=”paradas”; // Get all the taxonomies for this post type $taxonomies = get_object_taxonomies( (object) array( ‘post_type’ => $post_type ) ); foreach( $taxonomies as $taxonomy ) : // Gets every “category” (term) in this taxonomy to get the respective posts $terms = get_terms( $taxonomy, array( ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ‘hide_empty’ … Read more