Linux 软件免费装
Banner图

Tidy Table of Contents – Lightweight, Accessible TOC Block

开发者 pierreferrolliet
更新时间 2026年10月5日 14:34
PHP版本: 8.2 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

anchor links table of contents toc jump links toc block

下载

1.0.10 1.0.7 1.0.8 1.0.9

详情介绍:

Tidy Table of Contents is a lightweight, accessible table of contents plugin. It automatically generates jump links from your headings, or you can place it yourself with the TOC block or the shortcode. It works out of the box with no configuration, and offers deep customization when you need it. Key features: More from Tidy Plugins If you like this plugin, take a look at the rest of the Tidy suite:

安装:

  1. Upload the tidy-table-of-contents folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. The TOC will appear automatically above the first H2 heading in your posts
  4. Configure global defaults under Settings → Tidy TOC

屏幕截图:

  • Settings — choose post types, heading levels and where the TOC is inserted
  • Appearance — three visual themes with a live preview, list style and width
  • Outline theme, for a lighter look inside the article

升级注意事项:

1.0.7 Collapse now closes fully on every theme — replaced grid trick with max-height. 1.0.6 Collapse animation now closes fully — no more residual padding strip under the header. 1.0.5 TOC items now follow the theme's typography. The SOMMAIRE title is slightly larger for better hierarchy. 1.0.4 Fix: the toggle no longer adopts theme button styling, and TOC items keep a sensible size in sidebars and nav contexts. 1.0.3 New installs get "After first paragraph" as default insertion position. Font sizes now inherit from the active theme. 1.0.2 The free plugin no longer ships any code for premium-only features (sticky, custom theme, reading time). No user-facing change unless you were using the companion Pro add-on. 1.0.1 Code cleanup and security hardening. No user-facing changes.

常见问题:

Which heading levels are included?

By default H2 and H3. You can configure the minimum and maximum heading depth in the settings.

Can I disable the TOC for a specific post?

Yes. Each post has a meta box where you can disable the TOC or override global settings.

Does it work with the block editor?

Yes. The TOC is generated server-side from the rendered post content, so it works regardless of how the post was written.

Does it slow down my site?

No. The TOC output is cached per post and invalidated automatically when the post is updated.

Can I place the TOC manually?

Yes. Use the [tidy_toc] shortcode anywhere in your content, or disable auto-insertion in the settings.

Why does the table of contents not appear on some posts?

By default a post needs at least three headings before a table of contents is worth showing. You can lower that threshold in Settings, or set a minimum word count instead.

Can I change where it is inserted?

Yes. It goes after the first paragraph by default, which is what most readers expect, but you can place it before the content, after the first heading, or turn automatic insertion off and use the block or the [tidy_toc] shortcode.

Will it help me get sitelinks in Google?

It gives Google a clean anchor structure to work with, which is what jump links are built from. Nobody can promise sitelinks, but a proper heading outline with stable anchors is the prerequisite.

Does it change my heading IDs?

It adds an anchor id to headings that do not already have one, and leaves existing ids alone. Links you have already shared keep working.

Can I exclude a category or a specific heading?

Yes. Settings lets you exclude categories, tags and individual headings by their text, which is handy for boilerplate sections like "Comments" or "Related articles".

Does it load JavaScript on every page?

No. Assets are only enqueued on pages that actually display a table of contents, and the markup is cached per post.

更新日志:

1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0