By default, get_categories()
won’t return terms that have no posts (the hide_empty
parameter is true).
This should do it:
$children = get_categories(
array(
'parent' => 923,
'hide_empty' => false,
)
);
By default, get_categories()
won’t return terms that have no posts (the hide_empty
parameter is true).
This should do it:
$children = get_categories(
array(
'parent' => 923,
'hide_empty' => false,
)
);