-
Good morning
We are using the Rankmath sitemap. We have manually inserter some pages and posts to be excluded from the HTML and XML sitemaps on our site. This seems to work fine for pages but the posts are still showing up in the sitemap. We have tried to look at some of your documentation and notes this is often a caching issue. We have cleared the cache multiple times and even placed the code snippet your material suggested
/**
* Filter if XML sitemap transient cache is enabled.
*
* @param boolean $unsigned Enable cache or not, defaults to true
*/
add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);But these posts are still showing up in the sitemap. Please advise.
The ticket ‘Exclude Posts from Sitemap’ is closed to new replies.