WordPress.org

Ready to get started?Download WordPress

Forums

Google XML Sitemaps
[resolved] Does the exclude pages/pos feature of the google xml sitemap 4.0.6 plugin work ? (13 posts)

  1. Dorza
    Member
    Posted 2 months ago #

    Hi All

    Does exclude pages/posts feature work properly in the google xml sitemap plugin version 4.0.6? Cause when I type in a page to exclude and click save changes the text area is blank again and it just says page saved. How do you test to see if it works properly? I went into debug function mode and had a look through all the logs and configuration but couldn't find anything that told me about any excluded pages or post. Could someone please help?

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

  2. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    That's strange, which browser do you use?

  3. Dorza
    Member
    Posted 2 months ago #

    I use Internet Explorer the latest version and Firefox the latest version. Does it matter what browser I am using? I want to know how to test to see if the google xml sitemap is excluding the page or not?

  4. Dorza
    Member
    Posted 2 months ago #

    I found this is the debug section:

    [sm_b_exclude] => Array
            (
            )
    
        [sm_b_exclude_cats] => Array
            (
            )
    
        [sm_in_home] => 1
        [sm_in_posts] => 1
        [sm_in_posts_sub] =>
        [sm_in_pages] => 1
        [sm_in_cats] =>
        [sm_in_arch] =>
        [sm_in_auth] =>
        [sm_in_tags] =>
        [sm_in_tax] => Array
            (
            )

    Should the page I excluded be in here somewhere if it excluded it?

  5. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    yes, they should be inside there. What exactly did you enter in the field? Can you try if it works with only one post ID?

  6. Dorza
    Member
    Posted 2 months ago #

    I entered the page name url which is what we do. There was only one page I wanted to exclude. I don't want to exclude any posts.

  7. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    Ah I see. At the moment, you have to enter the ID of the post to exclude it, not the URL. You can find the ID for example when you edit a post. The URL of the edit screen will be something like post.php?post=21520&action=edit

  8. Dorza
    Member
    Posted 2 months ago #

    What do you mean? I don't have any posts, only pages. It is pages I want to exclude not posts. Do you mean page ID instead?

  9. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    Yes, sorry for the confusion. Internally in WordPress everything is a post, just a different "post type".

  10. Dorza
    Member
    Posted 2 months ago #

    So it is for example what-we-do instead of http://www.ostech.com.au/what-we-do which is the whole permalink url for the page?

  11. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    Sorry, at the moment it is a little bit complicated to add the pages here, I will improve this in a later release. You have to enter the page ID (numeric). You can find it if you open the "edit page" screen of WordPress. The URL of this screen will be something like post.php?post=21520&action=edit. 21520 is the ID that page.

  12. Dorza
    Member
    Posted 2 months ago #

    I worked it out. The post id for that page is 12. I added it in the exclude posts/pages option of the sitemap settings and checked it in the debug mode. The result:

    [sm_b_exclude] => Array
            (
             [0]=12
            )
    
        [sm_b_exclude_cats] => Array
            (
            )
    
        [sm_in_home] => 1
        [sm_in_posts] => 1
        [sm_in_posts_sub] =>
        [sm_in_pages] => 1
        [sm_in_cats] =>
        [sm_in_arch] =>
        [sm_in_auth] =>
        [sm_in_tags] =>
        [sm_in_tax] => Array
            (
            )

    Do you have any idea when you will release the next update for the page id option? Thanks for your help.

  13. arnee
    Member
    Plugin Author

    Posted 2 months ago #

    Not exactly yet, I will let you know here!

Reply

You must log in to post.

About this Plugin

About this Topic