Setyenv · Docs
  • English
  • Spanish
  • Chinese
  • Japanese
  • Arabic
  • German
  • French
  • Hindi
  • Indonesian
  • Italian
  • Dutch
  • Portuguese
  • Russian
  • Turkish

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.