Get posts from subcategory by parent category slug
You can do it this way: 1 – get all child terms which belongs the term you want $args = array( ‘taxonomy’ => ‘product_cat’, ‘child_of’ => 7, put here the id of parent term, which chldren you want to get ‘hide_empty’ => false, ); $child_terms = get_terms( $args ); 2 – loop through these terms … Read more