WordPress.org

Ready to get started?Download WordPress

Forums

Creating a non-linked page (5 posts)

  1. tap8
    Member
    Posted 9 years ago #

    Using 1.5.
    I would like to create a page whose link is not included in the "Pages" section.
    I would like to do this so that I can use a "contact me" form which directs to a "thank you" page that looks like the rest of the blog.

  2. Minna
    Member
    Posted 9 years ago #

    You can for example exclude the thank you page with a parameter:
    <?php wp_list_pages('exclude=PAGE_ID'); ?>

  3. tap8
    Member
    Posted 9 years ago #

    Sorry, noob here.
    Where should I be placing this parameter?

  4. Nick Momrik
    Member
    Posted 9 years ago #

    Wherever you have wp_list_pages in your theme.

  5. tap8
    Member
    Posted 9 years ago #

    Thanks for the help.
    I am just using the default theme.
    Changed line 40 of sidebar.php (/wp-content/themes/default) from:
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    to:
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>&exclude=11' ); ?>

    Similar discussion here (http://wordpress.org/support/topic.php?id=20654)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.