Hi. I’m trying to use:
<?php wp_list_pages('child_of=2&title_li='); ?>
But instead of ‘child_of=2’ I want to return the id of the current page. That way, this will only list the child pages of the page currently being viewed.
What string do I have to use to get this to work? I can’t figure out the answer from the forums or codex… 🙁
- The topic ‘Dynamic return of page_id?’ is closed to new replies.