making child_of work with page slugs?
-
Using WP 2.7, I’d like to generate a list of the children of the page with the slug=’home’. I’m currently using:
<ul class="legal-links"> <?php wp_list_pages('title_li=&child_of=2'); ?> </ul>
However, that only lets me get a list of the page with the ID=2, or whatever else the page_id may be. I’d rather generate the children based off the page slug, as that’s a more flexible way to make a theme.
Is this possible?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘making child_of work with page slugs?’ is closed to new replies.