• Resolved Go7enKs

    (@go7enks)


    Hi everyone! I’m almost a newbie in the WordPress World. I wanted to ask you if it’s possible to create a “hidden” page in my website. I’ll explain what I mean with “hidden”.

    Currently if I create a page in my Blog (www.lorenzofb.com) the page goes automatically in the header menu. But I don’t want it because I would like to create a page to acces by the sidebar without the link in the menu. I hope I explained it properly.

    SO is it possible? What should I do?

    Thanks!

Viewing 13 replies - 1 through 13 (of 13 total)
  • Edit the template tag in your header.php file:
    https://codex.www.ads-software.com/Template_Tags/wp_list_pages
    (hint: exclude parameter)

    Thread Starter Go7enKs

    (@go7enks)

    Ok, thanks…but where do I have to put the string?
    <?php wp_list_pages(‘exclude=17,38&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    I mean, I try to edit the header.php writing that string where there’s a

      tag already but it messes the menu up. Do I have to add that string or replace another…?

    Just add the exclude parameter to the existing tag.

    Thread Starter Go7enKs

    (@go7enks)

    Sorry for my ignorance…but for example?
    Like this?

    <?php wp_list_pages(‘title_li=’) ; (‘exclude=17,38&title_li=<h2>’ . __(‘Pages’) . ‘</h2>’ ); ?>

    No. What is the existing tag in your theme? Copy here ONLY the tag and put it between backticks `
    [it should be where the ~ is on top left of the keyboard]

    Thread Starter Go7enKs

    (@go7enks)

    This is the existing tag:

    `<?php wp_list_pages(‘title_li=’); ?>′

    [the same backtick at the beginning and at the end – just listen the instructions, don’t innovate:)]

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

    Thread Starter Go7enKs

    (@go7enks)

    LOL. Sorry. I’m really ignorant in all this stuff. Thank you very much for the attention and sorry if I bothered you ??

    Don’t worry. I assume you realized you will have to replace the 1,2,3,457 part with the ID# of the Pages you want to exclude.
    After creating a new Page go the the Page Management and see what is the ID# of the Pages you want to exclude ??

    Thread Starter Go7enKs

    (@go7enks)

    Just a last question…so if I want to include also the “List Pages by Menu order” it’d be like this?

    <?php wp_list_pages(‘exclude=1,2,3,457&title_li=&sort_column=menu_order’); ?>

    This is just to know if i got the trick :p

    Don’t put ever anything after the title_li (read the instructions!)
    Put everything else before it…
    <?php wp_list_pages('sort_column=menu_order&exclude=1,2,3,457&title_li='); ?>

    Thread Starter Go7enKs

    (@go7enks)

    Ok got it! Thanks!

    So, can you mark this as resolved?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Create a “hidden” page’ is closed to new replies.