Цей плагін не перевірявся з останніми 3-ма основними випусками WordPress. Можливо, він більше не може розроблятися або підтримуватися, і він може мати проблеми сумісності при використанні з більш новими версіями WordPress.

Automatic TOC – Table of Contents

Опис

This plugin will automatically create a Table of Contents (TOC) from all Heading tags present inside the content.

Simply add the widget or shortcode [toc] where you want the TOC to be shown.

No settings, just activate and add shortcode or widget.

You can use custom CSS to further customize the style of the TOC.

For more free WordPress plugins please visit plugins.club.

Скріншоти

  • Adding [toc] shortcode to the block editor
  • Adding TOC widget to Customizer
  • Hide a Heading using the shortcode
  • TOC with custom CSS on https://wpxss.com

Встановлення

  1. Upload the plugin file to the /wp-content/plugins/ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.

Add [toc] shortcode or widget anywhere you want.

For basic usage, you can also have a look at the plugin web site.

Часті питання

How to add Table of Contents?

Add the [toc] shortcode or widget anywhere you want to display table of contents.

How to exclude Headings?

To exclude headings from the TOC shortcode use the “exclude” attribute in the shortcode, for example: [toc exclude="On this page, Comments"]

How this plugin works?

This WordPress plugin creates a table of contents (TOC) from all headings in a post or page. The plugin provides a shortcode and a widget that can be used to display the TOC in different places on the website. The TOC is built by extracting headings from the post/page content, generating anchor links for each heading, and creating a nested list structure based on the heading levels.

Відгуки

Для цього плагіна немає відгуків.

Учасники та розробники

“Automatic TOC – Table of Contents” — проект з відкритим вихідним кодом. В розвиток плагіну внесли свій вклад наступні учасники:

Учасники

Перекладіть “Automatic TOC – Table of Contents” на вашу мову.

Цікавитесь розробкою?

Перегляньте код, перегляньте сховище SVN або підпишіться на журнал розробки за допомогою RSS.

Журнал змін

1.1

  • Added an option to exclude headings

1.0

  • Initial release