Display subcategory of category post type

<?php $term = get_queried_object(); $children = get_terms( $term->taxonomy, array(‘parent’=> $term->term_id,’hide_empty’ => false) ); if(count($children)) { $term = get_term_by( ‘slug’, get_query_var(…

6 سال پیش