For the above function this would work:
$children = get_all_subpages($cat_id, $args, OBJECT);
foreach ($children as $post) {
echo $post->guid;
echo $post->post_title;
}
For the above function this would work:
$children = get_all_subpages($cat_id, $args, OBJECT);
foreach ($children as $post) {
echo $post->guid;
echo $post->post_title;
}