Site icon Hip-Hop Website Design and Development

Listing energetic taxonomy phrases

I am engaged on tweaking a template which has a filterable masonry structure. I made a taxonomy-categories.php and for the filtering I would like the phrases of the energetic taxonomy. The template which I am utilizing has this code inside it

<ul id="filter">
                <li><a href="#" class="present" data-filter="*" title="">*</a></li>
                <?php
                $classes = get_terms('classes');
                foreach( (array)$classes as $categorie){
                    $cat_name = $categorie->title;
                    $cat_slug = $categorie->slug;
                ?>
                <li><a href="#" data-filter=".<?php echo esc_attr($cat_slug); ?>"><?php echo esc_attr($cat_name); ?></a></li>
                <?php } ?>
            </ul>

As you possibly can see it takes all of the phrases from the entire taxonomy. I need it to take solely the energetic’s taxonomy sub-terms.

So if I’m at URL instance.com/portfolio/name_of_cat_one I wish to checklist the youngsters of that class.

I do know that I can try this with get_term_by and tweaking a little bit to realize my goal, however after making an attempt for a lot of hours with out success I ended up asking right here 🙂