Doing this, gives me 8 pages:
$first_subpage = get_pages(array(
'child_of' => $heading_page->post_id
));
Doing this, gives me an empty array:
$first_subpage = get_pages(array(
'number' => 1,
'child_of' => $heading_page->post_id
));
Doing this, gives me 1 page:
$first_subpage = get_pages(array(
'number' => 2,
'child_of' => $heading_page->post_id
));
What's the logic behind this?