• Resolved phoenix2005

    (@phoenix2005)


    Ok, so I know that sounds weird, but here’s what I’m wondering:

    I am looking to add a page that will have my bio as listed here: https://4progaming.com/news/?page_id=20

    Where it says “Jon Lunceford” on the page, I want it to link to another page that will have a bio on me. However, if I make a separate page titled “Jon Lunceford”, and put it under “Staff” as the page parent, then it just shows up under About, and I don’t want it there.

    So basically, I want to be able to make that bio page of myself, and it not appear anywhere on the site, until I link to it on the staff page. Then from there is the only way it’s accessible. I tried to privately post it, but then I realized that I could only view it when I was logged in.

    Is there a way to make it like that? Also, is there a way to do that with posts too? (so they don’t appear under the categories on the navbar).

    If you need further explaining on what I’m doing, just ask, and I’ll try to explain it further.

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • t31os

    (@t31os)

    Your nav menu will use something like this….

    <?php wp_list_pages(); ?>

    Use something like this to exclude pages….

    <?php wp_list_pages('exclude=17,38'); ?>

    Where 17 and 38 are example page IDs.

    You can still link and view the page, it just won’t show in the menu… or at least it shouldn’t now..

    Thread Starter phoenix2005

    (@phoenix2005)

    I’ve got this in there now:

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

    Where should I add the 'exclude=17,38' in, and what should the code look like after that?

    Thread Starter phoenix2005

    (@phoenix2005)

    Anyone?

    t31os

    (@t31os)

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

    Change 17,38 to the ones you wish to exclude…

    Example if you wanted to exclude 1, 2 and 3…

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Adding Post and Pages that aren’t on the navigation’ is closed to new replies.