Additional sitemaps

#201740
Viewing 1 replies (of 1 total)
  • Brian
    Rank Math free

    Hello,

    Thank you for contacting Rank Math today.

    At the moment we only have an option to add URLs into the sitemap where only need to make use of the following similar filter in Rank Math:

    /**
     Filter to add extra URLs to the XML sitemap by type.
     *
     Only runs for the first page, not on all.
     *
     @param string $content String content to add, defaults to empty.
     */
     add_action( 'rank_math/sitemap/{$type}_content', function() {
     return '         https://rankmath.com/some-custom-url/
             2020-02-20T20:20:20+00:00     
    ';
     });

    Perhaps what you can do instead is create a new XML sitemap and use it as a index. Create it manually and include all the XMLs sitemaps from Rank Math and include your own in there as well.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    ​​​​​​

    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 ‘Additional sitemaps’ is closed to new replies.