I checked this filter in more detail it does not apply to this issue at all. The original ticket should be re-opened as the solution is completely off topic.
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
If you wish to remove a certain archive page from the sitemap you can use this filter to do so:
add_filter( 'rank_math/sitemap/post_type_archive_link', function ( $link ) {
//Add a conditional statement like:
if ( strpos( $link, '%listingLocation%' ) !== false ) {
return false;
}
return $link;
} );
In any case, you can use this filter if the archive page is defined within your WordPress: https://rankmath.com/kb/filters-hooks-api-developer/#exclude-taxonomy-from-sitemap.
In both of these cases, you need to use conditional statements to define the specific pages you want to remove. If you are not familiar, you want to seek some help from a developer.
We really look forward to helping you.
Thank you.
Thanks! I will give it a shot.
Hello,
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.