Finally – an EASY solution!
Install “[B]PC Hide Pages[/B]” WordPress plugin. It’s extremely simple. It gives you a list of all your pages (not posts), and you just check off which ones you want to hide. It removes those pages from archives, public sitemap, and search results AND tells the search engines to not index or cache the pages. The pages remain available to anyone that has the exact URL.
Perfect for thank you pages, bonus pages, etc. It’s still important that you don’t have a link to those hidden pages anywhere else on your website, AND that your social sharing plugin doesn’t automatically allow people to share those hidden pages. Also, check that the settings for any automatic cross-linking plugins won’t generate links to your hidden page.
I am so thankful that someone created such a simple, helpful tool!
@anitac – I understand what you are saying – but if you check off “archive” Simply Exclude will NOT keep it off a page that you create using the Archive template type. It will remove it from a category archive, though. Completely different.
I realize your post is quite old, but I have a solution so I thought I’d reply.
I, too, wanted to remove / delete / omit certain pages (like the Thank You page I created for a new email subscriber, appointment cancellation and reschedule pages I created for someone booking an appt with me, etc.) from the human-friendly site map (versus an XML sitemap for search engines) I created on my site by using the Archive Template provided with Genesis and my Balance Child Theme.
Here’s what worked for me:
Copy page_archive.php from Genesis to your child theme directory. (You need to do this via your hosting provider.)
Edit the copied file. The list of pages is output via this line:
<?php wp_list_pages( ‘title_li=’ ); ?>
To exclude a particular Page having a ID of say, 123, change it to
<?php wp_list_pages( ‘title_li=&exclude=123′ ); ?>
To exclude multiplage Pages, use comma separated Page IDs like this:
<?php wp_list_pages( ‘title_li=&exclude=1666,38′ ); ?>
I found these steps on Sridhar’s website here:
Hope this helps!
You must be logged in to reply to this topic.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.