WordPress.org

Ready to get started?Download WordPress

Forums

List specific pages and sub pages (3 posts)

  1. qzplx
    Member
    Posted 4 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
    Member
    Posted 4 years ago #

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

    Also cannot...

  3. bravenewniche
    Member
    Posted 4 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic