URL I don’t want in my site map

#39320
  • Resolved Anonymous
    Rank Math free

    Hi,
    I’m now using your plugin and I love it.
    I have issues with the site map.
    Here is the link :https://www.banahan.fr/sitemap_index.xml
    I’m getting entry that I don’t want
    exemple :
    https://www.banahan.fr/slideshow-sitemap.xml
    https://www.banahan.fr/testimonial-sitemap.xml
    and all the testimonial inside

    I have already added this to my function.php
    /**
    * 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 );

    But I can;’t figure how to remove the other links.
    Thanks for helping

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can remove the testimonial and slideshow sitemap from the sitemap index by heading over to Rank Math > Sitemap settings > Testimonial and later to the Slideshow tab and disable the include in sitemap option.

    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 1 replies (of 1 total)

The ticket ‘URL I don’t want in my site map’ is closed to new replies.