This is how to exclude, or skip, certain posts from the Jetpack sitemap.
You must change 47, 48, 49
on line 2 to your own post IDs that you want to exclude from the sitemap. The post IDs must be separated by a comma.
This code goes into your functions.
function isa_sitemap_exclude_pages( $skip, $post ) { if ( in_array( $post->ID, array( 47, 48, 49 ) ) ) { $skip = true; } return $skip; } add_filter( 'jetpack_sitemap_skip_post', 'isa_sitemap_exclude_pages', 10, 2 );
Questions and Comments are Welcome