Hello,
Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.
You seem to have two CPT, Services & Templates, and the sitemap are also working fine. You can see the Service sitemap by visiting http://example.com/services-sitemap.xml
although you haven’t enabled the Template sitemap. Could you please confirm if the is the case?
Also, I have shared the screenshot inside the sensitive data section.
Looking forward to helping you. Thank you.
Hi Ankit,
Thanks for the quick response.
The ‘Templates’ CPT is created by Oxygen, it’s not something you would want in a Sitemap. Those links lead to backend pages to manage the templates in Oxygen.
Yes the services sitemap is there, and all of the actual ‘services’ posts are displayed (e.g services/service-1)
However the archive page for services (/services) is nowhere inside any of the sitemaps, which is what I’m having trouble trying to figure out.
Hello,
I logged in to your site and was able to check that the Public Queryable was set to false in the taxonomy settings of your archive. I have set it to true and now the option to include the taxonomy in sitemap is available in the WP Dashboard > Rank Math > Sitemap Settings:
I have included the archive in your sitemap. Please check and confirm.
Looking forward to hearing from you.
Hi Jaideep,
Thanks for the reply.
That taxonomy isn’t something I want in the sitemap, I am only using that taxonomy to organise the services.
I’m just trying to get the archive link (/services) in the sitemap. It doesn’t like seem that’s possible?
I also tried to use the filter to add custom links to the sitemap with no success. I’ll add the code in the sensitive section just in case I’m doing something wrong.
Thank you.
Hello,
The filter you are using seems to be correct, but I cannot verify on your end because of the limited access. I can’t be able to see the editor section of the theme. Could you please flush your sitemap cache and also, if possible, disable any cache related plugins?
Looking forward to helping you. Thank you.
Hi Ankit,
Thanks again for the quick response.
The theme system is disabled as it is using Oxygen, so I am using Advanced Scripts to add the filter. I have added a direct link to the sensitive data section that will take you directly to the script when logged in.
I also tried using Code Snippets to add the filter, but still no luck.
Cheers.
Hello,
The code appears to be looking good. Please allow me to forward the issue to our dev. team for further investigation. We will get back to you shortly.
Looking forward to helping you.
Thanks.
Thanks Ankit, appreciate it.
Hello,
The filter you added to add an extra link in the Sitemap is not working. This is a bug in the plugin and I have logged it. Please allow us some time to test and release a fix. It should be added to the plugin in the upcoming update.
For now, to fix the issue on your site, I changed the code on line 251 in seo-by-rank-math/includes/modules/sitemap/class-generator.php
replaced:
if ( 1 === $current_page ) {
with
if ( 0 === $current_page ) {
The Services sitemap is now showing the Services page link. Can you please confirm?
I hope that helps.
Hi Pratik,
Yes it looks to be working great now, thanks for looking in to the issue and finding a fix!
Cheers.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.