Title: Raoa ToC Linker
Author: RaoaTech
Published: <strong>2026 年 10 月 2 日</strong>
Last modified: 2026 年 10 月 2 日

---

搜索插件

![](https://ps.w.org/raoa-toc-linker/assets/banner-772x250.png?rev=3724192)

![](https://ps.w.org/raoa-toc-linker/assets/icon-256x256.png?rev=3724208)

# Raoa ToC Linker

 作者：[RaoaTech](https://profiles.wordpress.org/raoatech/)

[下载](https://downloads.wordpress.org/plugin/raoa-toc-linker.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/raoa-toc-linker/#description)
 * [评价](https://cn.wordpress.org/plugins/raoa-toc-linker/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/raoa-toc-linker/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/raoa-toc-linker/#developers)

 [支持](https://wordpress.org/support/plugin/raoa-toc-linker/)

## 描述

Raoa ToC Linker makes long-form WordPress content easier to scan. It reads headings
from rendered post content, assigns stable anchor IDs, and builds a navigable table
of contents.

You can insert the table of contents automatically, place it with a shortcode, or
show it in a sidebar widget. Authors can override behavior per post. Readers get
smooth scrolling, optional URL hashes, a collapsible list, and widget highlighting
for the section in view.

#### Features

 * Automatic heading detection from rendered HTML (`the_content`)
 * Compatible with the Classic Editor, the block editor, and Elementor output (no
   Elementor PHP dependency)
 * Auto-insert before the first heading, after the first paragraph, or after a chosen
   paragraph
 * Shortcode `[raoa_toc_linker]` with attributes for title, levels, theme, and more
 * Sidebar widget with optional sticky positioning and active-section highlight
 * Appearance presets (Default, Minimal, Bordered, Dark, Custom colors)
 * Hierarchical or flat lists, optional counters, collapsible toggle
 * Per-post enable, heading levels, and insert mode (Classic meta box and block 
   editor)
 * Smooth scroll with offset, optional URL hashes, and respect for reduced motion
 * Developer actions, filters, and helper functions

#### Shortcode

    ```
    [raoa_toc_linker]
    ```

Optional attributes include `title`, `levels`, `hierarchical`, `counter`, `theme`,`
collapsible`, `hidden`, `smooth_scroll`, `anchors`, `offset`, `class`, and `label`.

#### Privacy

Raoa ToC Linker does not send data to remote services. It does not track readers.
Settings are stored in the WordPress options table; per-post overrides are stored
as post meta.

## 屏幕截图

[⌊Settings — General tab: post types, heading levels, and auto-insert.⌉⌊Settings—
General tab: post types, heading levels, and auto-insert.⌉[

Settings — General tab: post types, heading levels, and auto-insert.

[⌊Settings — Appearance tab: themes, colors, and counters.⌉⌊Settings — Appearance
tab: themes, colors, and counters.⌉[

Settings — Appearance tab: themes, colors, and counters.

[⌊Table of contents on a blog post.⌉⌊Table of contents on a blog post.⌉[

Table of contents on a blog post.

## 安装

 1. Upload the `raoa-toc-linker` folder to the `/wp-content/plugins/` directory, or
    install the plugin through the WordPress Plugins screen.
 2. Activate Raoa ToC Linker through the Plugins screen.
 3. Go to Settings  Raoa ToC Linker to choose post types, heading levels, appearance,
    and behavior.
 4. Publish a post with at least two headings (h2–h4 by default). The table of contents
    appears before the first heading on enabled post types.
 5. Optionally add the **Raoa ToC Linker Table of Contents** widget, or place `[raoa_toc_linker]`
    in the content.

## 常见问题

### Why is the table of contents not showing?

Confirm the post type is enabled under Settings  Raoa ToC Linker  General, that 
the post has at least the minimum number of matching headings, and that it is not
disabled in the per-post Raoa ToC Linker panel. The theme template must call `the_content()`
for the main content.

### Does it work with Elementor?

Yes, when Elementor headings render as `h1`–`h6` in the content output. The plugin
does not require Elementor PHP classes.

### Can I use only the sidebar widget?

Yes. Turn off auto-insert in settings and do not add the shortcode. Add the Raoa
ToC Linker widget to a sidebar or as a Legacy Widget in the block widgets screen.

### Does it collect personal data or phone home?

No. There are no remote requests, analytics, or tracking.

### How do I exclude headings?

Add the exclude CSS class (default `raoa-toc-linker-exclude`) to a container. Headings
inside `nav`, `aside`, `footer`, and `header` are skipped automatically. Developers
can also filter `raoa_toc_linker_parsed_headings`.

### How do I hide the table of contents on one post?

Edit the post and set Enable table of contents to No in the Raoa ToC Linker panel(
Classic meta box or block editor document sidebar).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Raoa ToC Linker」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ RaoaTech ](https://profiles.wordpress.org/raoatech/)

[帮助将「Raoa ToC Linker」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/raoa-toc-linker)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/raoa-toc-linker/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/raoa-toc-linker/)，或通过[RSS](https://plugins.trac.wordpress.org/log/raoa-toc-linker/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/raoa-toc-linker/)。

## 更新日志

#### 1.0.0

 * Initial release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**2 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.2**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/raoa-toc-linker/)
 * 标签
 * [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[headings](https://cn.wordpress.org/plugins/tags/headings/)
   [navigation](https://cn.wordpress.org/plugins/tags/navigation/)[table of contents](https://cn.wordpress.org/plugins/tags/table-of-contents/)
   [toc](https://cn.wordpress.org/plugins/tags/toc/)
 *  [高级视图](https://cn.wordpress.org/plugins/raoa-toc-linker/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/raoa-toc-linker/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/raoa-toc-linker/reviews/)

## 贡献者

 *   [ RaoaTech ](https://profiles.wordpress.org/raoatech/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/raoa-toc-linker/)