WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Displaying child pages of a parent page (1 post)

  1. gillsans
    Member
    Posted 6 years ago #

    I'm wondering how I can display the child navigation of a parent page?

    My sitemap looks like this:

    About
    Courses
    - course a
    - course b
    Services
    Contact

    I want "course a" and "course b" titles to display as navigation under "Courses".

    I tried to add <?php wp_list_pages('child_of=2&sort_column=post_title&title_li=') ?>

    But I can't add php inside the page code

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic