Forums

[resolved] exlude child pages but not parent page (3 posts)

  1. nadine00
    Member
    Posted 2 years ago #

    Hello,

    So I've been searching the codex and looking at documentation, but I can't figure this out. Basically, I just want to exclude the child pages from a navigation but keep the parent page title. I was trying with exclude_tree but that also gets rid of the parent.

    Any work arounds?

    thanks!

    _n

  2. MichaelH
    Volunteer
    Posted 2 years ago #

    Use the depth=1 argument with the template tag, wp_list_pages().

  3. nadine00
    Member
    Posted 2 years ago #

    thank you. i missed that. :)

    _n

Topic Closed

This topic has been closed to new replies.

About this Topic