Support » Themes and Templates » Add a list od child-pages in the “page sidebar”

  • Resolved lebourrin91


    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 :

    $selected_pages=”‘child of=”. $post->ID. “‘”;

    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.


    PS : if this post is in the wrong section please tell me !

  • The topic ‘Add a list od child-pages in the “page sidebar”’ is closed to new replies.