WordPress.org

Ready to get started?Download WordPress

Forums

wp_list_pages exclude all but some pages? (4 posts)

  1. ttmt
    Member
    Posted 2 years ago #

    Hi all

    I'm using wp_list_pages to create a navigation of the pages in my site. The pages include an About and Contact page. I would like the navigation for these two pages to be in a different location to the rest of the other navigation. The rest of the navigation maybe change as new pages are added.
    I thought I could use wp_list_pages in the two different locations and then delete the pages with exclude. So the about, contact navigation I would exclude the other pages and the other pages navigation I would exclude about and contact.
    The other pages navigation I would always exclude about and contact. The exclude in the about, contact navigation would change if new pages are added.

    In the about, contact menu can I exclude all pages apart from about and contact?

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

  3. ttmt
    Member
    Posted 2 years ago #

    thanks - I feel really stupid now.

  4. Peter Wooster
    Member
    Posted 2 years ago #

    Does your theme support custom menus? If so just set up two menus one for the contact and about and one for the rest. See appearance/menus in the backed.
    /Peter

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.