Custom Post Type with Custom Taxonomy in Bootstrap 4 Accordion
I have a CPT with a Custom Taxonomy and a I need to show this content in the Bootstrap 4 Accordion.
So far, i have this:
?php 
$terms = get_terms( array(
            'taxonomy' = 'ano'
        ));
foreach($terms as $term) { ?    div id="accordion" role="tablist"      div class="card"
div class="card-header" role="tab" id="heading-?php the_ID(); ?"
  h5 class="mb-0"
    a data-toggle="collapse" href="#collapse-?php the_ID(); ?" aria-expanded="true" aria-controls="collapse-?php the_ID(); ?"
      ?php echo $term-name;  ?
    /a
  /h5
/div
div id="collapse-?php the_ID(); ?" class="collapse?php echo ($the_query-current_post == 0 ? ' in' : ''); ? show" role="tabpanel" aria-labelledby="heading-?php the_ID(); ?" data-parent="#accordion"
  div class="card-body"
    ?php   $event = new WP_Query('post_type=Paradasposts_per_page=-1');
            while ($event-have_posts()) : $event-the_post(); ?                           
            p?php the_title(); ?/p
            ?php endwhile ; wp_reset_query(); ?    
    
  
        
The taxonomy is being shown correctly in the header but the content is being the same, independent of the taxonomy
Topic twitter-bootstrap custom-post-types Wordpress
Category Web