WordPress.org

Ready to get started?Download WordPress

Forums

XML Sitemap & Google News feeds
[resolved] Hide/remove Private posts/pages in Sitemap. (5 posts)

  1. bhargavy
    Member
    Posted 1 year ago #

    Hello how can I hide/remove private posts/pages from the sitemap generated?

    http://wordpress.org/extend/plugins/xml-sitemap-feed/

  2. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Private posts should not be visible in the sitemap... Do you have a link to your site where I can see the issue?

  3. bhargavy
    Member
    Posted 1 year ago #

    Link

    No 14. Example Page is a Privately Published Page.

  4. RavanH
    Member
    Plugin Author

    Posted 1 year ago #

    Haha... Should have thought of this earlier: log out and check again. You'll see that URL is no longer there :)

    When you're logged in, WordPress shows private pages and so does the sitemap. I could force them to be removed for logged in users too but it will not make a difference to search engines as they will never be logged in. At least, I hope they won't ever log in ;)

  5. bhargavy
    Member
    Posted 1 year ago #

    You're right, if im logged out the private pages are not being shown.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.