Subpages of page – Urgent syntax help needed please
-
HI Folks,
Can someone please tell me how I can get this piece of code to work, I just get a blank screen when I browse to it:
// if pageid is 157 or subpage id of 157
`<?php if ( is_page( 157 ) || ( is_page() && $post->post_parent) : ?>
Do something
<?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Subpages of page – Urgent syntax help needed please’ is closed to new replies.