post_content)) {
$children = get_pages("child_of=".$post->ID."&sort_column=menu_order");
$first_child = $children[0];
$first_child_permalink = get_permalink($first_child->ID);
echo '
';
if ( $first_child){ header('Location: '.$first_child_permalink); }
}
?>
ID) && !is_page(33) ) {
global $post;
global $language;
global $current_language;
$current_language = pll_current_language();
$pagelist = get_pages('sort_column=menu_order&sort_order=asc');
$pages = array();
foreach ($pagelist as $page) {
$pages[] += $page->ID;
}
$current = array_search(get_the_ID(), $pages);
$prevID = $pages[$current-1];
if (!empty($pages[$current+1])) { $nextID = $pages[$current+1]; }
if (!empty($nextID)) {
$next_post_url=get_permalink($nextID);
$next_post_link=get_the_title($nextID);
if (!is_front_page($post->ID) && !is_page(33) ) {
echo "
";
}
}
}
?>