I swear, one of these days I will have to give back to the WordPress community.
With the following code I am using to display child pages on certain parent pages… can I adjust the
is_page('21')tag to add additional page IDs?
<?php if (is_page('21')) : ?> <?php wp_list_pages('title_li=&child_of=21'); ?> <?php else : ?> <?php endif; ?>
I hope that makes sense.
- The topic ‘[Resolved] is_page(‘ID’)’ is closed to new replies.