Unable to exlcude pages from sitemap – bug probably
-
Hi, all, I’m trying to exclude a lot of pages dynamicaly with
noindex
inrank_math_robots
meta key.I set up the filter
rank_math/sitemap/include_noindex
to return false.And that didn’t work. So I dig a little further and I found that the problem with this approach is that the internal Rank Math function, which is fetching the
rank_math_robots
metadata, is passingsingle = true
parameter to theget_meta
function:class-metadata.php:75 > return
get_metadata( $this->meta_type, $this->object_id, $property, true );
This is preventing the helper method to return an array => therank_math/sitemap/include_noindex
cannot exclude the pages.Could you check if this is expected behavior? It would be useful to exclude the
noindex
pages from the site map with therank_math/sitemap/include_noindex
filter.Thank you in advance.
- The topic ‘Unable to exlcude pages from sitemap – bug probably’ is closed to new replies.