Forums

new pages (3 posts)

  1. cybershot
    Member
    Posted 3 years ago #

    I am looking at using custom themes for a wordpress site. My question is if I add a link to a new page, how Do i create that page without it being listed in the sidebar? I figured i would just make up the theme then go to the admin area, then write page and add the info for that page in there. but that adds the page to the navigation and i don't want that as the page is not a main page. I only have a test site up right now with the standard wordpress starter theme

  2. churchthemer
    Member
    Posted 3 years ago #

    It depends on what you are using to display your navigation. In most cases there is a parameter you can pass to the function calling the navigation to exclude certain pages.

    For example the pages widget, which displays pages in the default wordpress sidebar, has an exclude id field in the widget's option.

    and

    The wp_list_pages() function also can take an exclude parameter:

    <?php wp_list_pages('exclude=7,33'); ?>

    in the example above 7 and 33 are id numbers for pages excluded from the navigation.

  3. Technokinetics
    Member
    Posted 3 years ago #

    There are also plugins that let you exclude pages from your navigation menus through the dashboard, including this and this.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.