• Resolved sgchan

    (@sgchan)


    With PublishPress Permission plugin turned on, the below code returns an empty array:

    $subcats=get_categories(array('child_of' => 47, 'taxonomy'=>'category', 'hide_empty'=>0));

    The same if I replace ‘child_of’ with ‘parent’.

    But if I turn off the plugin, then it works fine. Is there something in the plugin that is blocking ‘child_of’ or ‘parent’? Is this a bug or an intended feature? If latter, how can we enable these 2 parameters?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permissions block get_categories with ‘parent’ or ‘child_of’ parameters’ is closed to new replies.