Never mind...I've done some more research and found what I was looking for...Thanks anyway !
Hi !
I don't know if anyone has already asked this questionbut I didn't find anything here.
So I want to do the following :
- On each page, I want to have a list of the "children pages"
- I want to do this in the template files (using the K2 theme)
So at the moment I am trying to add a little php script at the place of the loop where I want my "children-pages-menu" to appear :
<?php
$selected_pages="'child of=". $post->ID. "'";
wp_list_pages($selected_pages);
?>
I wrote this because I think it's equivalent to (let's say the page ID is 33) :
<?php wp_list_pages('child_of=33'); ?>
So do you see a mistake ? Can you tell me what I did wrong here ?
Thank you for your help.
Henry
PS : if this post is in the wrong section please tell me !