abinidi Posted August 8, 2005 Posted August 8, 2005 In WordPress 1.5, is there a way to create a page that is invisible? By invisible, I mean that it doesn't show up in my sidebar when you run the <?php wp_list_pages command. For example, I want to create a contact form on a page, but then when users fill out the form, I want to redirect to a THANK YOU Page. But I don't want the thank you page listed by the wp_list_pages command. I don't know if I'm making any sense. My brain is still fried this morning!! Quote
abinidi Posted August 8, 2005 Author Posted August 8, 2005 Ok. Sorry. I answered my own question. But I'm posting the response here, in case it is helpful to anybody: Exclude Pages from ListExclude certain Pages from the list. Suppose you do not want Pages with ID numbers 17 and 38 to be displayed. Modify the call to this template tag in your theme's sidebar.php. The exclude argument is what removes items from the list. ><ul> <?php wp_list_pages('exclude=17,38&title_li=<h2>' . __('Pages') . '</h2>' ); ?> </ul> Note: The Page is only excluded from the list; it can still be accessed from Manage->Pages by clicking that Page's "View" button. It can also be accessed by directly typing its URI in your web browser. More: Excluding a Page from the list will also exclude all of its SubPages (a.k.a children) if it has any. Quote
TCH-Thomas Posted August 8, 2005 Posted August 8, 2005 Welcome to the talking to yourself club. Seriously, I am glad that you solved it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.