Support » Plugins » Displaying static pages in navigation

  • Resolved blogjam

    (@blogjam)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 🙂

    Thread Starter blogjam

    (@blogjam)

    Nice one – thanks very much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Displaying static pages in navigation’ is closed to new replies.