Forums

How do I create a page that isn't included in the menu? (5 posts)

  1. musicianjs
    Member
    Posted 2 years ago #

    I am looking to make a page on my website that isn't listed along the top menu bar.

    For example, I want to create a landing page for my Twitter account but I don't know how to create it and not have it in the menu.

    Any ideas?

    Jason Shadrick
    http://www.jasonshadrick.com

  2. Samuel B
    moderator
    Posted 2 years ago #

    look in your theme's header.php for a line similar to this
    <?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?>
    find out the page id you don't want to show and make line like this

    <?php wp_list_pages('title_li=&depth=4&sort_column=menu_order&exclude=33'); ?>

    change the 33 to your actual page id

  3. musicianjs
    Member
    Posted 2 years ago #

    Thanks.

    Would I need to insert a line for each page I want to exclude or can I combine them into one line?

  4. songdogtech
    Member
    Posted 2 years ago #

    There are lots of parameters for wp_list_pages in the docs, where you can list a array of pages to exclude, among other things.

  5. songdogtech
    Member
    Posted 2 years ago #

    Or, use a plugin like Exclude Pages.

Topic Closed

This topic has been closed to new replies.

About this Topic