I would do something like this:
$categories = get_categories($args);
foreach ($categories as $category){
if ($category->parent != $get_id_parent_cat->term_id){
//Do stuff with the category
}
}
I would do something like this:
$categories = get_categories($args);
foreach ($categories as $category){
if ($category->parent != $get_id_parent_cat->term_id){
//Do stuff with the category
}
}