Additional pages/urls into sitemap

#745666
  • Resolved Anonymous
    Rank Math free

    I have products post type defined with JetEngine and the URL exists in the sitemap, all good. But I added a alternatives path like this “https://{domain}/products/{product-name}/alternatives” to products with rewrite rule, all works fine. But now I need add them into sitemap also for all products or when one of those pages will be opened.

    Please help me to do it, I checked all hooks but couldn’t find which can help to solve my problem.

    Thanks in advance,
    Vahan

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for reaching out to us with your query about adding additional pages/URLs to your sitemap. To include custom URLs like “https://rankmath.com/kb/configure-sitemaps/” in your sitemap alongside your products post type, you can follow these steps:

    1. Add Custom Links in get_sitemap_links() Function:

      • Replace the example.com URLs with your custom URLs in the get_sitemap_links() function.
    2. Add the Code Snippet in Child’s functions.php:

      • Add the provided filter code in the functions.php file of your child theme.

    By following these steps, the new sitemap will include your custom links alongside your products. This method allows you to add custom URLs to your Rank Math sitemap.

    If you encounter any issues or need further assistance, please let us know. Thank you for using Rank Math!

    Kind regards.

    Sources:
    How to Create a Custom Sitemap and Include It in Rank Math » Rank Math
    How to Configure Sitemaps in Rank Math – Best Settings and Tips
    Advanced Tab in Rank Math SEO’s Meta Box

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 pages/urls into sitemap’ is closed to new replies.