
外掛標籤
開發者團隊
原文外掛簡介
Parich Accessible Sitemap adds a sitemap page that people can read: your pages, your posts by category, other content types and taxonomies, archives and authors. Add the Parich Accessible Sitemap block to any page, or use the [parich_sitemap] shortcode.
Built for accessibility (WCAG 2.1 AA)
The sitemap is a labelled navigation landmark with real headings (you choose the level, 2–6, to fit your page) and nested lists that screen readers announce with their level. No custom widgets to learn.
A table of contents jumps to each section, and a “Back to contents” link ends every section.
Visible keyboard focus. Collapsible categories use native
, so they work with the keyboard and screen readers and need no JavaScript.
The link to the page being viewed is marked with aria-current.
Reflows to a 320px-wide screen without horizontal scrolling, and is sized in rem/em for zoom and custom text spacing.
Tree lines at full strength in Windows contrast themes and with “increase contrast”; a clean printout (no table of contents, collapsed categories printed open).
The markup is tested with axe-core and in a real browser; the tests and a manual checklist (keyboard, NVDA, zoom) are in the GitHub repository.
Colors and fonts come from your theme, so text contrast is the theme’s to get right.
Thai language support
Thai translation of the sitemap, the settings page and the block editor, delivered as a language pack from translate.wordpress.org.
Years in the Buddhist Era (พ.ศ.) on Thai sites, in any date format.
Thai titles and names in dictionary order. Databases sort words that start with เ แ โ ใ ไ after all others; this plugin sorts them by their first consonant, as a Thai dictionary does (กา เกม ไก่ ขนม …).
Line spacing that leaves room for Thai vowels and tone marks.
Fast on large sites
The sitemap is cached and rebuilt automatically when posts, pages, categories or authors change.
Posts are loaded in batches without their content, so memory stays low however many posts there are.
Optionally list only the first posts of each category, with a link to the category page for the rest.
On a test site with 5,000 posts, building the sitemap took under a second and serving it from the cache a few milliseconds.
Display
A tree with connecting lines (default), or plain nested lists (the block’s “List” style, or style="list").
Collapsible categories, open or closed at first.
Show everything, or only one kind of content: pages, posts, categories, tags, archives, authors, or any public content type or taxonomy.
Coming from WP Sitemap Page
This plugin started as a fork of WP Sitemap Page 1.9.6 by Tony Archambeau (GPLv2 or later). Its settings are copied the first time this plugin runs. Replace [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.
延伸相關外掛
Thai language support
Years in the Buddhist Era (พ.ศ.) on Thai sites, in any date format.
Thai titles and names in dictionary order. Databases sort words that start with เ แ โ ใ ไ after all others; this plugin sorts them by their first consonant, as a Thai dictionary does (กา เกม ไก่ ขนม …).
Line spacing that leaves room for Thai vowels and tone marks.
Posts are loaded in batches without their content, so memory stays low however many posts there are.
Optionally list only the first posts of each category, with a link to the category page for the rest.
Display
Collapsible categories, open or closed at first.
Show everything, or only one kind of content: pages, posts, categories, tags, archives, authors, or any public content type or taxonomy.
This plugin started as a fork of WP Sitemap Page 1.9.6 by Tony Archambeau (GPLv2 or later). Its settings are copied the first time this plugin runs. Replace [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.
