How can i write this code?
-
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.
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<?php if (is_page(1639) || $post->post_parent=="1639"): ?> <?php get_template_part( 'loop', 'about' ); ?>
Thanks in advance
[ Please do not bump, that’s not permitted here. ]
- The topic ‘How can i write this code?’ is closed to new replies.