• Resolved bychow26

    (@bychow26)


    I want to have my pages set to draft status show up when a direct link is used, but I keep getting the 404 exception. When I am logged in, the page displays, but not when I am not logged in. My reason for doing this is I need many pages on the site that can be hard linked to, but I do not want them to show up on the nav menus.

    Can this be done? See me example below:
    http://tlsveterans.org/mission/Enstrom

    Thank you,
    Brian

Viewing 7 replies - 1 through 7 (of 7 total)
  • Draft pages won’t be displayed by default. You’d be better off publishing these pages (possibly as children of a specific top level page) and then excluding them from any page menus.

    Thread Starter bychow26

    (@bychow26)

    Can you advise how to “exclude them from any page menus”?

    Thank you!
    Brian

    That depends upon whether your theme is using wp_list_pages or wp_page_menu. The exclude parameter is pretty much the same in both template tags.

    Try looking in your theme’s header.php file to find what your theme is using to generate your top nav menu.

    Thread Starter bychow26

    (@bychow26)

    esmi,
    Thank you, I tried adding the exclude parameter, but I did not get it right. I put them in a child sub menu and accomplished what I needed, but I would still like to learn how to do this.

    Could you tell me how I should have done it with the following code:

    <div id=”navbar”>

    <div id=”navbarleft”>
    <ul id=”nav”>

    Thread Starter bychow26

    (@bychow26)

    FYI, I found this plug in that seems to works well so far.
    http://wordpress.org/extend/plugins/exclude-pages/

    I would still like to know how to edit that piece of php above if you would like to illustrate. Thank you for your help!!

    Brian

    Assuming you want to exclude 2 pages with ids of 3 and 17 respectively, you’d use:

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

    Thread Starter bychow26

    (@bychow26)

    Thank you for the help, much appreciated!!!

    Brian

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Pages with Draft Status not showing up’ is closed to new replies.