如何从子类别列表中仅获取孙子类别当前我正在使用下面的代码获取父类别的子类别。
<?php
$args = array(
\'orderby\' => \'name\',
\'parent\' => 72,
\'taxonomy\' => \'category\',
\'hide_empty\' => 0 ,
\'number\' => \'21\'
);
$categories = get_categories(\'hide_empty=0&child_of=\'.$cat);
$content=\'\';
foreach ( $categories as $category ) {
echo \'<div class="col-md-4 inline-block padding-0" style="margin-bottom:10px;"><a href="\' . get_category_link( $category->term_id ) . \'">\'. $category->name . \'</a></div>\';
}
?>