WordPress.org

Forums

Google XML Sitemaps
Why are unpublished/hidden pages in the sitemap? (4 posts)

  1. BlueIceStudios
    Member
    Posted 10 months ago #

    The sitemap includes unpublished and hidden pages. How do I stop this from happening?

    https://wordpress.org/plugins/google-sitemap-generator/

  2. Arne Brachhold
    Member
    Plugin Author

    Posted 10 months ago #

    It should not happen, the SQL query clearly asks for status = publish so it can't include any unpublished posts. Are you using a special plugin for this functionality?

  3. BlueIceStudios
    Member
    Posted 10 months ago #

    It is woocommerce and products only. The only plugins I have are store based and buddypress. Could this be a woo issue?

  4. Arne Brachhold
    Member
    Plugin Author

    Posted 10 months ago #

    I will have a look how WooCommerce handles the products. If they store them as posts in the database and marked them as "publish", they will be included.

Reply

You must log in to post.

About this Plugin

  • Google XML Sitemaps
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.