WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Displaying static pages in navigation (3 posts)

  1. blogjam
    Member
    Posted 9 years ago #

    I'm using the page management tool to create a series of pages (about, contact etc). By default, all these pages are then displayed in the sidebar template, but I don't want this.

    Is there a way of displaying only certain pages, and keeping the others hidden? For instance, I don't want a navigable link to a thanks page that is generated when someone uses the contact form, but for ease of site management I'd prefer to create this page using the page management tool...

    Apologies if this question has been answered elsewhere.

  2. Minna
    Member
    Posted 9 years ago #

    You can exclude the pages you want with a parametre exclude (see Codex). For example <?php wp_list_pages('exclude=1013, 1121&sort_column=menu_order'); ?>
    Sort_column is there just to show how the parametres are if there are several. The numbers are the page IDs to exclude. Golden star to people who know where those example numbers are from :)

  3. blogjam
    Member
    Posted 9 years ago #

    Nice one - thanks very much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.