Page of Parent Page
I am trying to get a widget to show when it is page XYZ or a child of XYZ (page 4).
I have used:
is_page(‘XYZ’) || ($post->post_parent==”4″)
If I am on mysite.com/XYZ then it works fine, but as soon as I am on mysite.com/XYZ/ABC it no longer shows (even though XYZ is page 4 and set to be a parent of page ABC).
- The topic ‘Page of Parent Page’ is closed to new replies.