WordPress.org

Ready to get started?Download WordPress

Forums

Excluding ALL subpages? (7 posts)

  1. Patrick79
    Member
    Posted 9 years ago #

    I'd like to exlclude ALL future subpages I will create, is there an easier way than to write down all their ID's and exclude them manually?

  2. Chelsea
    Member
    Posted 9 years ago #

    Yes. I think you catergorize the subpages, then exclude that catergory.

  3. Patrick79
    Member
    Posted 9 years ago #

    and how do I do that?

    btw Go Chelsea :)

  4. Patrick79
    Member
    Posted 9 years ago #

    Has nobody any idea? Anyone?

  5. ohdear
    Member
    Posted 9 years ago #

    Try using the depth parameter, for example I use:

    <?php wp_list_pages('title_li=&depth=1'); ?>

    Which only shows top level pages and with no heading. Hope that what you're looking for :)

  6. Katrina
    Member
    Posted 9 years ago #

    make a page, example, Excluded. And everytime you make a new page, you put them under 'Excluded' as a parent. Then exclude 'Excluded' so everything underneath it is excluded too

  7. Patrick79
    Member
    Posted 9 years ago #

    thanks a lot 'ohdear', that was exactly it :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.