Support » Themes and Templates » List specific pages and sub pages

List specific pages and sub pages

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • I also tried this one.
    <?php wp_list_pages(‘depth=2&include=65&title_li=’ ); ?>

    Also cannot…

    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'); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List specific pages and sub pages’ is closed to new replies.