• hi,

    I am trying to create a menu that includes a few pages and its subpages, but wil not show other pages. I have tried it with ‘child_of=’:

    <?php wp_list_pages(‘include=5,2,6&child_of=5,2&title_li=’ ); ?>

    But this doesn’t work, the subpages will not show up.

    Does anyone know how to do this?

    Thanks in advance for the help!!

    Marieken

Viewing 1 replies (of 1 total)
  • Here’s an older thread concerning this, but it didn’t solve my problem http://wordpress.org/support/topic/276513?replies=10. It does a good job of explaining the issue though.

    My workaround was using get_pages(). I used it to spit out list items.

    $pages = get_pages('child_of=18');
    foreach($pages as $page)
    {
        echo '<li><a href="' . get_page_link($page->ID) . '">' . $page->post_title . '</a></li>';
    }

Viewing 1 replies (of 1 total)
  • The topic ‘child_of: children not showing’ is closed to new replies.