WordPress.org

Forums

wp_list_pages NOT exclude subpages (4 posts)

  1. fo3nix
    Member
    Posted 9 years ago #

    hi,

    I wish to exclude certain pages from the list, but not their subpages.

    Using the exclude parameter also excludes the subpages.. any ideas?

  2. vrada
    Member
    Posted 9 years ago #

    try child_of, and turn off the all. Child_of automatically hides the parent if all is set to 0.

  3. fo3nix
    Member
    Posted 9 years ago #

    I don't quite follow... you mean something like this?:

    wp_list_pages('exclude=5,43&child_of=37&child_of=38&child_of=8&sort_column=menu_order&title_li= ' );

    what do you mean by "turn off the all"?

  4. fo3nix
    Member
    Posted 9 years ago #

    no-one have a solution to this problem?

    I'm sure there's something simple that must be possible, just cant figure it out :/

Topic Closed

This topic has been closed to new replies.

About this Topic