• I want to not show certain pages in my sidebar and navigation. Can someone tell me how to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi Xen2
    I have done this as follows (for a form redirect “thank you” page):

    A page will be invisible if you don’t put anything in the Page title box when you create it (but you can put commented-out content so you know what it is in the list of pages).

    It will still be in the list (“Pages”) but will be invisible. BUT there are at least two “fixes” you may need to do
    1. if you are using a list style type your invisible page will still have a “marker”, so you need to make the list-style-type:none (you can fix this in your style sheet)
    2. you will have a space where the page title would have appeared in the list (at the top because it doesn’t have a title). I’ve used the “Page Parent” to hang the invisible page of the end of my page “list” by making its parent the last page in my nav list: it still has its own page id that you can link to independent of its “parent”. It is also not an active link at all so it is completely invisible and inaccessible from your nav.

    Hope this helps.

    What about using the “exclude” parameter in the template tag? Isn’t that doing exactly what you want?
    Mandatory reading 🙂
    http://codex.wordpress.org/Template_Tags/wp_list_pages

    It certainly sounds like it 😉 And it took me ages to solve that one when I did it originally!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How not to show page’ is closed to new replies.