CodeHQ

Adding a back to parent item link | WordPress

<?php
$this_page = get_post($id);
$parent_id = $this_page->post_parent;
if ($parent_id) {
	$parent = get_page($parent_id);
	echo '';
}
?>