nerijus
5/27/2014 - 9:00 PM

Get current taxonomy

Get current taxonomy

<?php
                $tax_terms = get_terms('galleries');
                foreach ($tax_terms as $term) {
                    $active_gal = '';
                    $termsas =	$wp_query->queried_object;
                    if($termsas->slug == $term->slug) {
                        $active_gal = 'active';
                    }

                    ?>