List specific pages and sub pages (3 posts)

  1. qzplx
    Posted 6 years ago #

    Hi Guys,

    I tried to looking around how to list specific pages include the subpages.

    Currently i'm using:
    <?php wp_list_pages('include=65,90,92,84,82,88,80,86,61,78,72,74,67,76&title_li=' ); ?>

    this will show all the list of course with the subpages inside there.

    Using this syntax
    <?php wp_list_pages('child_of=65');?>

    Only showing the child pages and I need also the parent page

    Is there any way to do this ?
    Just want to avoid if later I added new sub pages I dont have to update the theme again.

    Thanks in advance

  2. qzplx
    Posted 6 years ago #

    I also tried this one.
    <?php wp_list_pages('depth=2&include=65&title_li=' ); ?>

    Also cannot...

  3. bravenewniche
    Posted 5 years ago #

    Tried working through this same issue - best I've been able to come up with is:

    <?php wp_list_pages('title_li=&include=416'); ?>
    <?php wp_list_pages('title_li=&child_of=416'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic