Setyenv · Docs
  • English
  • Español
  • 中文
  • 日本語
  • العربية
  • Deutsch
  • Français
  • हिन्दी
  • Bahasa Indonesia
  • Italiano
  • Nederlands
  • Português
  • Русский
  • Türkçe

Sitemap integration

Records of any entity that lists public in its can_read_roles column appear in /wp-sitemap.xml as a sub-sitemap per entity. URLs use the same pretty-permalink path PermalinkRouter handles.

lastmod reads from sys_updated_at. The provider obeys WP's built-in wp_sitemaps_get_max_urls cap so very large entities paginate across multiple sub-sitemap files.

Yoast SEO compatibility: Yoast replaces the core sitemap with its own. Until a Yoast-aware adapter ships, sites running Yoast need a one-line filter:

add_filter('wpseo_sitemap_index', function ($xml) {
    return $xml . '<sitemap><loc>' . esc_url(home_url('/wp-sitemap-pfmrecords-1.xml')) . '</loc></sitemap>';
});

— or deactivate Yoast's XML sitemap module under Yoast → Features.