Following on from @EAMann's answer, I'm assuming you want 'Excerpts Showreel' to be variable, and to return content based on passing the variable?
function mytheme_get_page_content_by_title( $title = false ) {
if ( false == $title ) return;
$page = get_page_by_title( $title );
$my_id = $page;
$post_id = get_post($my_id, ARRAY_A);
$title = $post_id['post_title'];
$content = $post_id['post_content'];
return $content;
}
Then in your template:
echo mytheme_get_page_content_by_title( 'Excerpts Showreel' );
Note that you might want to sanitize the $title variable being passed into the function.
EDIT
I'm not sure why you'd need to return the title (it's what you start with, and pass to your function), but here you go:
function mytheme_get_page_details_by_title( $title = false ) {
if ( false == $title ) return;
$page = get_page_by_title( $title );
$my_id = $page;
$post_id = get_post($my_id, ARRAY_A);
$posttitle = $post_id['post_title'];
$postcontent = $post_id['post_content'];
$details = array(
'title' => $posttitle,
'content' => $postcontent
);
return $details;
}
Then you'd have to pass it to a variable to use it in your template:
$mypostdetails = mytheme_get_page_details_by_title( 'Excerpts Showreel' );
echo $mypostdetails['title']; // print the post title
echo $mypostdetails['content']; // print the post content