📜  wordpress 仅显示父类别 - 任何代码示例

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

代码示例1
$args = array(
  'orderby' => 'name',
  'order' => 'ASC',
  'parent' => 0
);
$categories = get_categories($args);