How to show term child only if has a post
AS per my knowledge you need to write following function in your functions.php and check whether the term has post using the below function function check_term_posts($tax_slug, $term_id) { $args = array( ‘post_type’ => ‘post’, ‘status’ => ‘publish’, ‘tax_query’ => array( array( ‘taxonomy’ => spanishcategory, ‘field’ => ‘term_id’, ‘terms’ => 169 ) ) ); $term_query = … Read more