WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Issue with listing subpages (2 posts)

  1. Jacorre
    Member
    Posted 6 years ago #

    Hi, I was wondering if someone could help with an issue I'm having. I have the following defined:

    <ul>
    <?php wp_list_pages('title_li=&include=2,4');?>
    </ul>

    It does not list the subpage that attached to ID #2. If I remove the include command it works fine, but I can't remove that include command because this list is listing specific pages.

    How do I define it so that I can keep the included pages, but display the subpage that's attached to a particular ID (or any other IDs in the future)?

    Thanks!

  2. Adam Brown
    Member
    Posted 6 years ago #

    One way: Add the subpage's ID to the include part.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.