| 开发者 | snowbedding |
|---|---|
| 更新时间 | 2025年11月11日 19:48 |
| PHP版本: | 7.2 及以上 |
| WordPress版本: | 6.8 |
| 版权: | GPLv2+ |
| 版权网址: | 版权信息 |
[easy_sitemap] shortcode with extensive attributes[easy_sitemap] - Complete sitemap with all content typespost_type - Filter by post type (post, page, product, etc.)limit - Number of items to display (default: 1000)orderby - Sort by: date, title, modified, menu_order, rand, ID, author, name (default: date)order - Sort order: DESC (default) or ASC
Filtering Attributes:
include - Include specific post IDs (comma-separated)
exclude - Exclude specific post IDs (comma-separated)category - Filter by category slugs (comma-separated)tag - Filter by tag slugs (comma-separated)taxonomy + term - Filter by custom taxonomyauthor - Filter by author IDdate_from / date_to - Date range in YYYY-MM-DD format
Display Attributes:
show_dates - Show publication dates (0/1, default: 0)
show_excerpts - Show post excerpts (0/1, default: 0)show_images - Show featured images (0/1, default: 0)hierarchical - Hierarchical display for pages/posts (0/1)depth - Hierarchy depth (0 = unlimited)columns - Number of columns (default: 1, max: 6)class - Custom CSS class for styling
Performance Attributes:
cache - Enable caching for this shortcode (0/1, default: settings)
cache_expiry - Cache lifetime in seconds/wp-content/plugins/easy-sitemap/[easy_sitemap] to the page contentYes! The plugin automatically supports all public custom post types. Use the post_type attribute:
[easy_sitemap post_type="product"]
[easy_sitemap post_type="portfolio"]
[easy_sitemap post_type="event"]
The plugin uses WordPress transients for efficient caching:
cache="0" to disable caching for dynamic contentYes! Multiple customization options:
class attribute for custom styling.easy-sitemap - Main wrapper.easy-sitemap-list - List container.easy-sitemap-item - Individual items.easy-sitemap-date - Date display.easy-sitemap-excerpt - Excerpt text.easy-sitemap-image - Featured imagesUse various filtering attributes:
[easy_sitemap post_type="post" category="news,blog"]
[easy_sitemap author="1" date_from="2023-01-01"]
[easy_sitemap tag="featured" show_images="1"]
[easy_sitemap taxonomy="product_cat" term="electronics"]
Yes! Full WooCommerce support:
[easy_sitemap post_type="product"]taxonomy="product_cat" term="category-slug"taxonomy="product_tag" term="tag-slug"[easy_sitemap] shortcode with comprehensive filtering and display options