Hello,
I apologize for the issue you are facing with the category "lunch" not appearing in your sitemap. To ensure that your categories are included in the sitemap, please follow these steps:
-
Check Sitemap Settings: Go to your WordPress dashboard and navigate to Rank Math > Sitemap Settings. Ensure that the category post type is enabled for inclusion in the sitemap.
-
Check for Custom Canonicals: If you have set a custom canonical URL for the "lunch" category, it may not appear in the sitemap. Rank Math includes a self-referencing canonical by default, so removing any custom canonical settings might help.
-
Plugin Conflicts: Sometimes, other plugins can conflict with Rank Math. You can use the Health Check plugin to identify any potential conflicts.
-
Robots.txt File: Ensure that your robots.txt file is not blocking the category from being indexed. You can check this by going to Rank Math SEO > General Settings > robots.txt.
If you have checked all of these and the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further. Thank you for raising this concern!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
Please make sure that there are actual posts associated with that particular category and that they are set to index and make sure that the option “Include Empty Terms” is turned on as well. You can set that in Rank Math → Sitemap Settings → Category.
After that, please follow the steps below:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how that goes. Looking forward to helping 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.