Forums

Hide page tags for published pages (7 posts)

  1. kimber787
    Member
    Posted 4 years ago #

    I'm trying to add a page that is published so I can direct people to it after signing up for my mailing list (a thank you page, basically), but I don't want to have the page show up in the pages list (or the page tabs across the top of my page).

    I tried to create it as a private page, but then only I can see it when I'm logged in.

    Is there a way to have a published page that I can direct people to without having it show up in the page list or page tabs (so others can't just see it and click on it)?

    Thanks!

  2. moshu
    Member
    Posted 4 years ago #

    Not sure about the "redirect" part - but I assume you know what are you doing.

    As for exclusion: just read the documentation:
    Template_Tags/wp_list_pages#Exclude_Pages_from_List

  3. kimber787
    Member
    Posted 4 years ago #

    Thanks! Where do I paste in that code? On the page itself, or somewhere else?

  4. moshu
    Member
    Posted 4 years ago #

    Not in the Page for sure.
    Somewhere else... if you meant where you have already that template tag to display your Pages - yes.
    Not having a link and not knowing which theme is active (they are all coded differently), the answer is as vague as your question.

  5. kimber787
    Member
    Posted 4 years ago #

    Sorry about the vagueness. I'm using "Unnamed One 0.4.3 beta" as my template.

    The site is XXXXXXXXX.com and the page I want to have published (so I can direct people there) but not show up as a tab across the top is the "Thank You" page.

  6. moshu
    Member
    Posted 4 years ago #

    Most likely you have to edit your header.php file in the theme and add the exclude parameter to the template tag found there.

  7. kimber787
    Member
    Posted 4 years ago #

    Great--thanks! Just as a note, in this particular template the wp_list_pages is the third line from the bottom, so in the parens I just added "&exclude=19" and it worked.

    Thanks for all your help!

Topic Closed

This topic has been closed to new replies.

About this Topic