跳到内容

Turnatoc – Table of Contents

v0.1.0

turnaplugins · 2026年10月10日 上架

Table of contents for posts and pages. Switch from LuckyWP Table of Contents without changing a page or a heading link.

正在使用
10 以下
评分
暂无
累计下载
183
最近更新
2026年10月10日
需要 WordPress 6.2+已测试到 7.1.5PHP 7.4+

贡献者

截图

A table of contents on a post (imported from LuckyWP Table of Contents; the page did not change).
A table of contents on a post (imported from LuckyWP Table of Contents; the page did not change).
Import screen: the preview shows what will be imported before anything is written.
Import screen: the preview shows what will be imported before anything is written.
Settings > Table of Contents.
Settings > Table of Contents.
The block in the editor, with a preview built from the post's headings.
The block in the editor, with a preview built from the post's headings.

Turnatoc adds a table of contents to your posts and pages: automatically, with a shortcode, with a block or with a widget.

Switching from LuckyWP Table of Contents

LuckyWP Table of Contents has not been updated since April 2025. If you used it, your posts contain its [lwptoc] shortcodes and blocks, and other pages link to your headings (for example #How_to_start). When that plugin is removed, the shortcodes show up as plain text, the blocks disappear and those links stop working.

Turnatoc takes over without editing any post:

  • [lwptoc] shortcodes and its blocks are displayed by Turnatoc.
  • Heading links (#…) are generated with the same rules, so existing links keep working.
  • The table of contents has the same HTML and CSS classes, so the page looks the same, including your own CSS.
  • Its general settings and per-post settings are imported with one click. A preview shows what will be imported before anything is written. The import can be undone.
  • Its data is never changed. While both plugins are active, each table of contents is still shown once.

Tools > Import table of contents: Preview, then Import. Check a few posts, then deactivate the old plugin.

What is kept as it was: on posts whose headings get no anchors, the links in the old widget go to the top of the page; on classic themes, the colors set on a block are not applied when another table of contents is shown after it. Turnatoc keeps these as they were, so your pages do not change.

Features

  • Automatic insertion (post types, position), shortcode [turna_toc], block, widget.
  • Minimum number of headings, depth, skip headings by level or text.
  • Hierarchical or flat list; decimal or Roman numbering, nested or not.
  • Show/hide toggle, smooth scroll with offset.
  • Width, float, font sizes, color schemes and custom colors.
  • Hash formats: heading text (transliterated or not), counter; lowercase, dashes.
  • noindex wrapper, rel=”nofollow”.
  • Per-post settings.
  • English and Turkish.

Not tested

Page builders (Elementor, Beaver Builder, Oxygen), Toolset Views, WPML and themes that override the old plugin’s templates were not tested with Turnatoc. The old plugin had special code for some of them; Turnatoc does not include it.

Privacy

Turnatoc does not send any data anywhere and does not load anything from other sites.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums