Get first level children of a page ID
Question
I am looking to get immediate children of a page ID.
I tried below code, but it does not seem to work
$pageIDchild = get_pages(
array (
'parent' => 0,
'child_of' =>$pageID,
'sort_column' => 'menu_order'
)
);
Any help is gr
0
child-pages, children, get-children
3 years
0 Answers
40 views