WordPress.org

Support

Support » How-To and Troubleshooting » wp_list_pages exclude all but some pages?

wp_list_pages exclude all but some pages?

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_list_pages exclude all but some pages?’ is closed to new replies.
Skip to toolbar