This was useful. Thanks. It allows for edits of pages/posts within WordPress to be removed from sitemap XML’s. If the pages and posts do not exist in WordPress
1)I should use
add_filter( ‘wpseo_exclude_from_sitemap_by_post_ids’, function () {
return array( 311, 322 );
} ); ?
2) In what PHP program should these filters live?
I have 12 sitemap XML’s is their an easier way to edit them?
Thanks