| 开发者 | parich |
|---|---|
| 更新时间 | 2026年10月5日 17:28 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[parich_sitemap] shortcode.
Built for accessibility (WCAG 2.1 AA)
<details>/<summary>, so they work with the keyboard and screen readers and need no JavaScript.aria-current.rem/em for zoom and custom text spacing.style="list").[wp_sitemap_page] shortcodes with [parich_sitemap]; they take the same attributes.
Source code
The complete source, including the block editor code in src/, ships with the plugin and is on GitHub: github.com/parich/parich-accessible-sitemap. Build it with npm install and npm run build.
[parich_sitemap] shortcode.No. WordPress already publishes one for search engines at /wp-sitemap.xml. This plugin makes the sitemap page that visitors read.
only — one kind of content: page, post, category, tag, archive, author, or the name of a public content type or taxonomy.sort and order — for example [parich_sitemap only="page" sort="menu_order"] or [parich_sitemap only="post" sort="post_title" order="ASC"].heading_level — 2 to 6 (default 2).toc="false" — no table of contents; display_title="false" — no section headings.display_category_title_wording="false" — no "Category:" before category names.style="list" — plain lists instead of the tree.collapsible="true" or collapsible="closed" — collapsible categories.posts_per_category="20" — at most 20 posts per category.pages_title, posts_title, categories_title, tags_title, archives_title, authors_title — rename a section.only_private="true" — private pages, shown only to users who can read them.Only the first visit after a change builds it; later visits are served from the cache. To make the page itself shorter, set Posts per category in the settings (or posts_per_category in the shortcode).
No. It makes the sitemap's markup accessible. Colors, contrast and the rest of the page come from your theme and your content.
Yes: add_filter( 'parich_sitemap_thai_sort', '__return_false' );. Lists without any Thai are never re-sorted. The PHP intl extension is used when the server has it; otherwise a built-in method gives the same order.
parich_sitemap_use_cache — return false to build the sitemap on every view.parich_sitemap_cache_ttl — how long a cached sitemap is kept, in seconds (default one day).parich_sitemap_thai_sort — return false to keep the database order.parich_sitemap_collator — a Collator to sort Thai with, or null for the built-in method.shortcode_atts_parich_sitemap — WordPress's standard filter for the shortcode's attributes.The plugin is free, with every feature for everyone. If it is useful to you, you can make a donation. Thank you!
aria-current, "Back to contents" links.[parich_sitemap].