Greetings,
What I have
- Parent
--- Child
----- Child
I need to display the content for the 2nd level. For the 1st level child I use the following conditional:
What I should change / add to make the code work for the lower level child pages?
Actually it supposed to be the same conditional but it have to ignore / pass the parent page to reach the main parent page. Please help, my brain is about to blow.
What I have
- Parent
--- Child
----- Child
I need to display the content for the 2nd level. For the 1st level child I use the following conditional:
Code:
<?php if (get_parent(false)=='parent'){ ?> Content <? }?>
What I should change / add to make the code work for the lower level child pages?
Actually it supposed to be the same conditional but it have to ignore / pass the parent page to reach the main parent page. Please help, my brain is about to blow.