Support » Fixing WordPress » Creating pages that dont show on menu?

  • 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!

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

    Added to the codex on the pages page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Creating pages that dont show on menu?’ is closed to new replies.