How to keep a page off my sitemap?

Community Forums Forums General Discussion How to keep a page off my sitemap?

This topic is: not resolved

This topic contains 17 replies, has 4 voices, and was last updated by  christine123 3 months, 3 weeks ago.

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #43130

    Sundancer
    Participant

    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!

    #43197

    lisaleague
    Participant

    @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.

     

    #139443

    christine123
    Participant

    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:

    http://sridharkatakam.com/how-to-exclude-a-page-when-using-genesis-archive-page-template/

    Hope this helps!

Viewing 3 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic.