-
I’m using make.com to publish post to wordpress (it’s an automation platform like zapier) but when the post is published & live on website. It won’t show up in Rankmath sitemap and I’ve to manually update post once to be visible in sitemap.
What could be the solution to this?
Sitemap isn’t cached BTW
-
Hello,
I apologize for the inconvenience you are facing with your posts not showing up in the Rank Math sitemap automatically when published through make.com. If the sitemap isn’t cached, one common reason for this issue could be that the post is excluded from the Sitemap Settings of Rank Math.
To resolve this issue, please ensure that the post IDs are not excluded in the Exclude Posts settings of Rank Math. You can check and adjust this setting by following these steps:
- Go to your WordPress dashboard.
- Navigate to Rank Math SEO > Sitemap Settings.
- Check the Exclude Posts section to ensure that the post IDs are not listed there.
If the post IDs are not excluded, another possible solution could be to check if the post is set as Noindex. You can verify this by checking the Advanced tab settings of the post or page. If the Robots Meta tag is set to Noindex, change it to Index to ensure the post is included in the sitemap.
If you have already checked these settings and the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will further assist you in resolving this matter.
Thank you for bringing this to our attention. We are here to help you get this matter sorted out efficiently.
Warm regards.
Sources:
Why Isn’t My URL Included in the Sitemap? » Rank Math
Why Did My Website Disappear From Google Search? » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank MathHello,
Thank you for contacting us and sorry for any inconvenience that this issue might have caused.
Rank Math generates the sitemap for your site dynamically and by default includes posts/pages/CPTs whose meta robots are set to
indexand have self-referencing canonical URLs.If the above conditions were met and the issue persists it is possible if you use a cache system for your site or database that the cached version of your site is being used to generate the sitemap.
You can test this by initially clearing all cache after publishing a post and then checking if it appears on the sitemap.
Meanwhile, be certain that the sitemap files are not cached. If you have not; please 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/
You can also try disabling the transient cache for the sitemap. This will make sure that your XML sitemap always reflects the latest changes on your site. To do this, you need to add a small piece of code to your site’s functions.php file or use a plugin like Code Snippets.
The code you need to add is this:/** * Filter if XML sitemap transient cache is enabled. * * @param boolean $unsigned Enable cache or not, defaults to true */ add_filter( 'rank_math/sitemap/enable_caching', '__return_false');If you’re not sure how to add this code, you can follow this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/.
Let us know how this goes. Also, let us know if you have further questions or concerns.
Thank you.
The other 2 didn’t work but adding coding via custom snippet worked. Thanks
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-postabout 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.
You must be logged in to reply to this ticket.