Subdomain posts are not showing in the sitemap.

#259545
  • Resolved rank heal
    Rank Math free

    Hello,

    I am picking posts from the RSS feed, and RankMath is not showing those posts in the sitemap.

    It is making only numbers of sitemaps but not showing posts in them.

    Is there any solution to do it solve, or do I have to switch the plugin?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

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

    Could you please confirm if you have installed Rank Math on that subdomain? Also, please share a couple of posts that you don’t see in the sitemap and the sitemap URL so we can debug the issue further.

    Looking forward to hearing back from you.​​

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    please check updated the requirements in the sensitive data

    Hello,

    Since you want to add the subdomain pages to the main domain sitemap you’ll need to make use of this filter: https://rankmath.com/kb/filters-hooks-api-developer/#add-extra-urls-in-sitemap

    Please note that the filter needs to be modified to fetch all the posts for the subdomain and add them appropriately to the main website sitemap.

    Hope this helps solve your issues.

    Don’t hesitate to get in touch if you have any other questions.

    Where to add this code.

    I can’t find the location named rank math PHP in the wordpress

    I haven’t understood this method.

    Could you please help me by explaining the whole process I have to perform

    Ankit
    Rank Math business

    Hello,

    You would need to customize the filter according to your need, When done, You need to place the code either in your current theme’s function.php file or create a new rank-math.php and place the code inside it.

    Hope that helps. 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘Subdomain posts are not showing in the sitemap.’ is closed to new replies.