May 29, 2013 at 4:13 pm #43130
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!May 30, 2013 at 8:33 am #43197
@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.February 2, 2015 at 2:51 pm #139443
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!July 13, 2016 at 7:06 am #189395
Thanks for the info, Sundancer, that was the solution for me too. I think it depends on what child theme you use, I tried adding the code to my functions.php and it didn't work (I created my own theme from the Genesis Child Sample).
You must be logged in to reply to this topic.