Skip to content

Instantly share code, notes, and snippets.

@maor
Created December 25, 2012 17:17
Show Gist options
  • Save maor/4374267 to your computer and use it in GitHub Desktop.
Save maor/4374267 to your computer and use it in GitHub Desktop.
<?php
function roee_get_parent_page_title() {
global $post;
return ( ! empty( $post->post_parent ) ) ? get_the_title( $post->post_parent ) : false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment