{"action":"created","issue":{"url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/42","repository_url":"https://api.github.com/repos/sybrew/the-seo-framework","labels_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/42/comments","events_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/42/events","html_url":"https://github.com/sybrew/the-seo-framework/issues/42","id":187375075,"number":42,"title":"How to restrict the sitemap with regards to bbpress/buddypress?","user":{"login":"ovizii","id":837902,"avatar_url":"https://avatars.githubusercontent.com/u/837902?v=3","gravatar_id":"","url":"https://api.github.com/users/ovizii","html_url":"https://github.com/ovizii","followers_url":"https://api.github.com/users/ovizii/followers","following_url":"https://api.github.com/users/ovizii/following{/other_user}","gists_url":"https://api.github.com/users/ovizii/gists{/gist_id}","starred_url":"https://api.github.com/users/ovizii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovizii/subscriptions","organizations_url":"https://api.github.com/users/ovizii/orgs","repos_url":"https://api.github.com/users/ovizii/repos","events_url":"https://api.github.com/users/ovizii/events{/privacy}","received_events_url":"https://api.github.com/users/ovizii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-04T16:12:56Z","updated_at":"2016-11-04T18:00:12Z","closed_at":null,"body":"Here is a sample sitemap with 708 entries: https://www.die-kellerkinder.eu/sitemap.xml \r\n\r\nI would like to reduce that number and NOT have replies indexed as they are the majority of those entries.\r\n\r\nAny way to achieve this?"},"comment":{"url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/comments/258504423","html_url":"https://github.com/sybrew/the-seo-framework/issues/42#issuecomment-258504423","issue_url":"https://api.github.com/repos/sybrew/the-seo-framework/issues/42","id":258504423,"user":{"login":"sybrew","id":7662236,"avatar_url":"https://avatars.githubusercontent.com/u/7662236?v=3","gravatar_id":"","url":"https://api.github.com/users/sybrew","html_url":"https://github.com/sybrew","followers_url":"https://api.github.com/users/sybrew/followers","following_url":"https://api.github.com/users/sybrew/following{/other_user}","gists_url":"https://api.github.com/users/sybrew/gists{/gist_id}","starred_url":"https://api.github.com/users/sybrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sybrew/subscriptions","organizations_url":"https://api.github.com/users/sybrew/orgs","repos_url":"https://api.github.com/users/sybrew/repos","events_url":"https://api.github.com/users/sybrew/events{/privacy}","received_events_url":"https://api.github.com/users/sybrew/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T18:00:12Z","updated_at":"2016-11-04T18:00:12Z","body":"Hi @ovizii,\r\n\r\nThanks for this! I now noticed I made [a typo](https://github.com/sybrew/the-seo-framework/blob/275b4c0c91d45060a6ac030a9467d60a1bfa9c9f/inc/classes/sitemaps.class.php#L649) in the CPT sitemap generation :(.\r\n\r\nAnyway, in order to remove replies from the sitemap, please use the following snippet, using [this filter](https://github.com/sybrew/the-seo-framework/blob/275b4c0c91d45060a6ac030a9467d60a1bfa9c9f/inc/classes/sitemaps.class.php#L572):\r\n```\r\nadd_filter( 'the_seo_framework_sitemap_exclude_cpt', 'my_sitemap_exlusions' );\r\nfunction my_sitemap_exclusions( $exclusions = array() ) {\r\n\r\n\t$exclusions[] = 'replies';\r\n\t//* You can add more exclusions, for example:\r\n\t$exclusions[] = 'forums';\r\n\r\n\treturn $exclusions;\r\n}\r\n```\r\n\r\nYou can reset the sitemap's cache by updating a post/page, or by re-saving the SEO Settings.\r\n\r\nI hope this helps! Cheers 😄 \r\n\r\n"}}
{"actor":{"display_login":"sybrew"}}