i have a problem understanding the get_terms function
All i want is getting all the children of specific category so that it can be listed. But i don't really know how the $args works.
So with this get_terms(category, $args);
I tried to use the child_of
$args = array(
'child_of' => 0,
'childless' => false,
);
But it gives all the category while i only need the child of a category. Changing the value to "1" gives empty result.
Then i tried the 'slug'
$args = array(
'slug' => 'on-going',
'child_of' => 0,
'childless' => false,
); `
This gives nothing but "On-going" only.
This is the category tree in my wordpress
The only thing i want is listing all child category of "On-going", that's it....
Thanks