| 开发者 |
fatih-toprak
optimisthub |
|---|---|
| 更新时间 | 2026年10月5日 06:33 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sitemap-index.xml) linking them alllastmod, changefreq and priority for every URLwp-content/uploads/sitemaps/, which is writable on normal hostingOptions -Indexes to the sitemap directory to prevent directory listinghttps://example.com/wp-content/uploads/sitemaps/sitemap-index.xml
Submit that URL to Google Search Console, Bing Webmaster Tools and Yandex Webmaster.
It is shown at the top of the plugin settings page under Settings > Smart Sitemap.
Yes. If another plugin already generates sitemaps, simply do not submit this one, or turn this plugin's generation off. Running both is harmless but redundant.
Only the public post types you tick in the settings. Attachments are excluded on purpose, since media files are not addressable content pages.
Use the smartsitemap_priority and smartsitemap_changefreq filters:
add_filter( 'smartsitemap_priority', function ( $priority, $post ) { return 'page' === $post->post_type ? '1.0' : $priority; }, 10, 2 );
Make sure WP-Cron is working. On low-traffic sites or sites with DISABLE_WP_CRON set to true, call wp-cron.php from a real server cron job. You can also save the settings page to force an immediate rebuild.
Yes. Each site generates its own sitemaps inside its own uploads directory.
data_get() helper came from rappasoft/laravel-helpers, which requires Laravel's illuminate/support package. That package was never bundled, so data_get() was undefined. The plugin now has no Laravel dependency.TypeError on every post save: the save_post callback was registered with three accepted arguments but declared none.strtotime() being called with a string as its second argument (the timezone offset), which throws a TypeError on PHP 8.settings_fields() call using a settings group that was never registered, which broke saving the settings page.lastmod being taken from post_date in local time; it now uses the correct GMT timestamp in ISO 8601 format.wp-content/uploads/sitemaps/ instead of ABSPATH/sitemaps/. The web root is not writable on many hosts.OptimistHub\SmartSitemap). The old includes/ classes are gone.index.php only required the Composer autoloader, and the main class was never instantiated by any code path.setMaxUrls behaviour, instead of silently generating one file while configured for 1,000.uninstall.php that removes options, the cron event and all generated files.composer.json, which was previously excluded by .gitignore and caused the broken dependency tree.init, which regenerated all sitemaps on every request.