📜  列出类别中的所有子类别 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:19.647000             🧑  作者: Mango

代码示例1
$args = array('child_of' => 17);
$categories = get_categories( $args );
foreach($categories as $category) { 
    echo '

Category: name ) . '" ' . '>' . $category->name.'

'; echo '

Description:'. $category->description . '

'; echo '

Post Count: '. $category->count . '

'; }