Get Page Content by Title


Display a specific full page title and/or content using only the page titles in wordpress.

<?php
$title = 'My Page Title';
$page = get_page_by_title($title);
$title = apply_filters('the_title', $page->post_title);
$content = apply_filters('the_content', $page->post_content);
if($page) { ?>
<div>
<h3><?php echo $title;?></h3>
<hr/>
<?php echo $content;?>
</div>
<?php }
?>