PAGE INDEXING in WordPress
WordPress’s Default sitemap is automatically created PAGE sitemap. If you want to stop indexing PAGE in search engines so follow simple steps.
How to Stop PAGE indexing
- Open functions.php of active theme.
- Paste given code and SAVE.
add_filter( 'wp_sitemaps_post_types', function( $post_types ) { unset( $post_types['page'] ); return $post_types; } );