內容簡介
總結:Easy XML Sitemap 是一個輕量且高效的外掛程式,用於生成 WordPress 網站的 XML 網站地圖。該外掛注重性能、模組化和與自定義設置的兼容性。
問題與答案:
1. Easy XML Sitemap 主要生成哪些內容的 XML 網站地圖?
- 文章
- 頁面
- 自定義文章類型
- 分類法
- Google 新聞(可選)
2. 這個外掛程式提供了哪些功能來提升擴展性和效能?
- 提供了 Sitemap index 文件(sitemap-index.xml)以提升擴展性
- 支援具有分頁和資源友好查詢的大型網站
- 提供了簡單的按文章排除選項
- 支援 Robots.txt 整合(可選)
- 與流行的 SEO 外掛(如 Yoast、Rank Math、All in One SEO 等)兼容
- 提供了開發人員擴展和自訂行為的過濾器和操作
3. Easy XML Sitemap 的設計重點是什麼?
- 著重於效能,使用有效的數據庫查詢和選項式快取來保持網站快速,即使有大量內容庫。
4. Easy XML Sitemap 是否友善於開發人員?
- 是的,所有核心組件都以類和命名空間的形式結構化,並提供各種鉤子:
- easy_xml_sitemap_before_render
- easy_xml_sitemap_after_render
- easy_xml_sitemap_before_clear_cache
- easy_xml_sitemap_after_clear_cache
- easy_xml_sitemap_meta_box_post_types
等等。
外掛標籤
開發者團隊
原文外掛簡介
Easy XML Sitemap is a lightweight and extensible XML sitemap plugin for WordPress.
It generates a sitemap index and multiple sitemap endpoints, supports all public custom post types, and can include images and videos inside each URL entry (Google extensions). It also provides a Status page with technical statistics (generation time, URL counts, hits, and ping results) so you can quickly confirm that everything is working.
The plugin is designed to be safe in real-world WordPress setups:
– It uses caching for performance
– It supports large sites via sitemap index and posts organization options
– It includes WP-CLI commands for maintenance
– It pings search engines on updates with debounce to avoid excessive requests
– It detects when Yoast SEO or Rank Math are active and warns you clearly, without automatically overriding other plugins
Main sitemap index URL:
– /easy-sitemap/sitemap.xml
Features
Sitemap Index at /easy-sitemap/sitemap.xml
Supports all public Custom Post Types (CPTs) with UI controls
Posts can be organized as:
Single sitemap (all posts in one file)
By date (one sitemap per month/year)
By category (one sitemap per category)
Image sitemap extension:
Featured images
Images found in post content
Video sitemap extension (conservative and safe):
YouTube embeds supported with reliable thumbnails
Self-hosted video supported when thumbnail is available
Vimeo supported only when a reliable thumbnail is available (fallback strategy)
Automatic ping to search engines on content update (debounced)
Status page with technical sitemap statistics and ping results
WP-CLI commands: status, regenerate, clear-cache
robots.txt integration (adds sitemap URL to the virtual robots.txt)
Per-post exclusion controls (existing feature preserved)
Sitemap Endpoints
Sitemap index:
– /easy-sitemap/sitemap.xml
Legacy endpoints (still supported):
– /easy-sitemap/posts-index.xml
– /easy-sitemap/posts-YYYY-MM.xml (when organizing posts by date)
– /easy-sitemap/posts-{category-slug}.xml (when organizing posts by category)
– /easy-sitemap/pages.xml
– /easy-sitemap/tags.xml
– /easy-sitemap/categories.xml
– /easy-sitemap/general.xml
– /easy-sitemap/news.xml
Custom post type sitemaps (v2.0.0):
– /easy-sitemap/{posttype}.xml (example: /easy-sitemap/product.xml)
