Skip to content

Instantly share code, notes, and snippets.

@ScarletPonytail
Created April 11, 2017 10:51
Show Gist options
  • Save ScarletPonytail/c920f7456794d4f4903fa370e5ddcc16 to your computer and use it in GitHub Desktop.
Save ScarletPonytail/c920f7456794d4f4903fa370e5ddcc16 to your computer and use it in GitHub Desktop.
WordPress - If Parent page and Child of parent page
elseif ( is_page( '59' ) || '59' == $post->post_parent ) { // About
$post = get_post();
get_template_part( 'carousel-about' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment