WordPress.org

Forums

[resolved] list of child links on parent page (3 posts)

  1. imta2d
    Member
    Posted 5 years ago #

    I have searched the forums and not seen this specific question asked. What I would like to do is link show all the child links for the parent page on that page.

    ie. About Page

    - link to About Page child 1
    - link to About Page child 2
    - link to About Page child 3

    Departments Page

    - link to Departments Page child 1
    - link to Departments Page child 1
    etc.

    I've seen the child links on the sidebar, but I want them to appear on the actual parent page. Thanks.

  2. esmi
    Forum Moderator
    Posted 5 years ago #

  3. imta2d
    Member
    Posted 5 years ago #

    Wow, that's embarassing! Thank you so much esmi! I did actually use the codes on that page, but I guess from farther down the page. I just kept getting the entire menu hierarchy.
    For anyone else wanting this info, this is the code that worked:

    <ul>
      <?php
      global $id;
      wp_list_pages("title_li=&child_of=$id&show_date=modified
      &date_format=$date_format"); ?>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic