apamphilon

Get permalink of first child page

<?php
    $children = get_pages("child_of=".$post->ID."&sort_column=menu_order");
    $first_child = $children[0];
    $first_child_permalink = get_permalink($first_child->ID);
?>

<a href="<?php echo $first_child_permalink; ?>">

Comments: