Support » Plugin: Google XML Sitemaps » Does the exclude pages/pos feature of the google xml sitemap 4.0.6 plugin work ?

  • Resolved Dorza

    (@dorza)


    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/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Arne Brachhold

    (@arnee)

    That’s strange, which browser do you use?

    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?

    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?

    Plugin Contributor Arne Brachhold

    (@arnee)

    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?

    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.

    Plugin Contributor Arne Brachhold

    (@arnee)

    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

    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?

    Plugin Contributor Arne Brachhold

    (@arnee)

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

    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?

    Plugin Contributor Arne Brachhold

    (@arnee)

    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.

    Dorza

    (@dorza)

    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.

    Plugin Contributor Arne Brachhold

    (@arnee)

    Not exactly yet, I will let you know here!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Does the exclude pages/pos feature of the google xml sitemap 4.0.6 plugin work ?’ is closed to new replies.