Linux 软件免费装
Banner图

Parich Accessible Sitemap

开发者 parich
更新时间 2026年10月5日 17:28
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

sitemap accessibility wcag thai html sitemap

下载

1.0.0

详情介绍:

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) Colors and fonts come from your theme, so text contrast is the theme's to get right. Thai language support Fast on large sites 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 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.

安装:

  1. In your dashboard go to Plugins → Add New Plugin, search for "Parich Accessible Sitemap", then install and activate it. You can also upload the ZIP file under Plugins → Add New Plugin → Upload Plugin.
  2. Edit the page that should show the sitemap and add the Parich Accessible Sitemap block, or the [parich_sitemap] shortcode.
  3. Optional: choose what to hide and how posts are shown under Settings → Parich Accessible Sitemap. The How to use tab lists every shortcode option.

屏幕截图:

  • Collapsible categories.
  • The block in the editor, with its settings.
  • The settings page.
  • On a Thai site: Thai translation, Buddhist Era years and Thai dictionary order.

升级注意事项:

1.0.0 First release.

常见问题:

Is this an XML sitemap for search engines?

No. WordPress already publishes one for search engines at /wp-sitemap.xml. This plugin makes the sitemap page that visitors read.

Which shortcode options are there?

  • 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.
The block has the same options in its settings panel.

My site has thousands of posts. Will the sitemap be slow?

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).

Does this make my whole site accessible?

No. It makes the sitemap's markup accessible. Colors, contrast and the rest of the page come from your theme and your content.

Can I turn off the Thai dictionary order?

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.

Which filters are there for developers?

  • 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.

How can I support the plugin?

The plugin is free, with every feature for everyone. If it is useful to you, you can make a donation. Thank you!

更新日志:

1.0.0