That’s strange, which browser do you use?
Thread Starter
Dorza
(@dorza)
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?
Thread Starter
Dorza
(@dorza)
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?
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?
Thread Starter
Dorza
(@dorza)
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.
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
Thread Starter
Dorza
(@dorza)
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?
Yes, sorry for the confusion. Internally in WordPress everything is a post, just a different “post type”.
Thread Starter
Dorza
(@dorza)
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?
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.
Thread Starter
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.
Not exactly yet, I will let you know here!