• I have this code, which makes all pages that are children of pageid 1639 display a certain template. I want to change it so it will work for grandchildren for for pageid 1639 as well.

    This is what I currently have:

    <?php if (is_page(1639) || $post->post_parent=="1639"): ?>
    <?php get_template_part( 'loop', 'about' ); ?>

    Thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do you call a grandparent?’ is closed to new replies.