WordPress.org

Ready to get started?Download WordPress

Forums

Creating pages that dont show on menu? (3 posts)

  1. GrandEdgemaster
    Member
    Posted 9 years ago #

    Is it possible to create a page that doesn't show on the menu? I've tried things such as setting Page Order to negative. I need it for a script I have to host on another server and I want it to call back to an OK/Error page via the ?page_id=num URL.

    If feature does not exist, could it be made or a plugin or something!

  2. GrandEdgemaster
    Member
    Posted 9 years ago #

    I think I may have found something, in wp-content/themes/themename/sidebar.php find the string
    <?php wp_list_pages("title_li=<h2>" . __("Pages") . "</h2>"); ?>
    or similar.

    After the </h2> add &exclude=idnum.

    So you have something like
    <?php wp_list_pages('title_li=<h2>' . __('Pages') . '</h2>&exclude=38' ); ?>

    This will hide the page of that ID number. If there's an easier way, I'd like to know about it.

  3. GrandEdgemaster
    Member
    Posted 9 years ago #

    Added to the codex on the pages page.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.