WordPress page template to redirect to first child page
To achieve this recipe, you have to create a page template. Create a new file and paste the following code in it:
<?php
/*
Template Name: Redirect To First Child
*/
if (have_posts()) {
while (have_posts()) {
the_post();
$pagekids = get_pages("child_of=".$post->ID."&sort_column=menu_order");
$firstchild = $pagekids[0];
wp_redirect(get_permalink($firstchild->ID));
}
}
?>

No comment on this link yet.