This is great for custom sub nav of pages
<?php // list the About subpage menu $args=array( 'showposts'=>5, // how many to show 'sort_column'=>'menu_order', 'post_type'=>'page', // page or post 'child_of' => $post->ID, ); $myPosts = get_pages($args); if ($myPosts) { foreach ($myPosts as $myPage) { $permalink = get_permalink($myPage->ID); } } ?>