/feed issue needs to be removed

#96362
  • Resolved John Stevens
    Rank Math pro

    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???

Viewing 5 replies - 1 through 5 (of 5 total)
  • Anyone?

    hmmmm really takes a long time to get any support here…….

    I’m at the point I might just switch back to Yoast.

    3 days and no answer…… wow.

    Horrible support guys.

    You want people to start paying for this????

    pOYRAZ
    Rank Math free

    It’s actually a pretty nice plugin, but it’s really sad not to get an answer.

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.


    @John
    We usually reply from the oldest tickets and therefore every time you added a reply it was pushed back in the queue.

    I am assuming you wish to keep your feed URLs from being crawled/indexed. You can do this in a simple way by adding a disallow to your robots.txt as follows:

    
    Disallow: */feed
    

    If you only wish to use the filter you had referred to, you can customize it then add it to your theme functions.php file.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘/feed issue needs to be removed’ is closed to new replies.