page exclude function not working
-
Hello
I have below code in CS, saved & activated as “Only run on site front-end.” Code is supposed to EXCLUDE a page from Jetpack Sitemap. Its not working.
https://apschipsealingpaving.com/sitemap.xmlI already tried the “Only run in administration area” mode also.
Any clues please?
function jeherve_exclude_post_sitemap( $skip, $post ) { if ( '72' == $post->ID ) { $skip = true; } else { $skip = false; } return $skip; } add_filter( 'jetpack_sitemap_skip_post', 'jeherve_exclude_post_sitemap', 10, 2 );
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘page exclude function not working’ is closed to new replies.