-
Hey guys,
Getting tons of errors on feed pages and we need to remove it.
Another post below said…..
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
I can suggest that you remove all links that contain /feed on your sitemap by making use of the following code to filter the URLs that are added to the sitemap for indexing:
/**
* Filter URL entry before it gets added to the sitemap.
*
* @param array $url Array of URL parts.
* @param string $type URL type. Can be user, post or term.
* @param object $object Data object for the URL.
*/
add_filter( ‘rank_math/sitemap/entry’, function( $url, $type, $object ){
return $url;
}, 10, 3 );Where exactly it this code put and used to turn off feed???
The ticket ‘/feed issue needs to be removed’ is closed to new replies.