WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
How To Exclude Certain Pages? (12 posts)

  1. SajanParikh
    Member
    Posted 2 years ago #

    I see the option field for adding post IDs to exclude from the sitemap, however I don't see anything about excluding certain pages.

    http://wordpress.org/extend/plugins/google-sitemap-generator/

  2. doctorlecter
    Member
    Posted 2 years ago #

    Pages ARE posts and have a post id. See the link when hovering a page in the backend. There you see soemthing like

    http://www.domain.tld/wp-admin/post.php?post=3&action=edit

    post=3 is your thing!

    Exclude post 3 and the page is gone.

  3. stifoo
    Member
    Posted 2 years ago #

    so i tried that...site is aaaphotobooth.com

    trying to get "newsletter subscription success" to disappear from site map.

    Went to exclude posts, entered that post's ID which is 250

    But that link is still there on my sitemap...any ideas?

    thx :)

  4. doctorlecter
    Member
    Posted 2 years ago #

    Did you generate the sitemap new "from hand"?

    Normally it's only generated when you change someting. (Add or delete a page)

    So if you change the settings you have to generate a new sitemap.

  5. stifoo
    Member
    Posted 2 years ago #

    ohh..good one..I'll go add a page now and see if that shows the change :) I'm a bit new at this :)

  6. stifoo
    Member
    Posted 2 years ago #

    Well, it immediately added the new "test page" link but did not exclude the other lol..hmmm...maybe because I have "include static pages" checked?

  7. doctorlecter
    Member
    Posted 2 years ago #

    You don't need to add a page for that.

    Go to
    - Settings
    - XML-Sitemap

    In the upper part of the plugin is the possibility to generate a new sitemap. (Don't know how this link is named in english because i use it in german.)

  8. doctorlecter
    Member
    Posted 2 years ago #

    I tried it in another of my pages. Excluded page "4" - the imprint.
    Saved the new config.
    Generated a new sitemap...

    Imprint is gone - no problem...

  9. stifoo
    Member
    Posted 2 years ago #

    Yes, did a manual rebuild and the link is till there, plus the link to the new page "test Page"

  10. stifoo
    Member
    Posted 2 years ago #

    hmmm, do I add more than just the ID numbers, separated by commas? For my exclusions I typed

    250,284

    for the two pages I'm trying to exclude

  11. stifoo
    Member
    Posted 2 years ago #

    maybe because its a child theme?

  12. kb04090
    Member
    Posted 2 years ago #

    Had this problem as well. Actually, the site map is probably updating and taking the page out, but you have to reload the page in your browser or it doesn't show the change. It took physically deleting the page and it STILL was there for me to realize that it must not have been refreshing in the browser.

    So after you do a manual refresh, and you click on the link to the site map, force the page to reload in your browser once it's loaded.

    :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic