跳到内容

HM Content TOC

v1.0.1

Dasha Luna · 2015年10月6日 上架

Creates TOC (table of contents) for specified HTML elements from post/page content; to allow jumping to corresponding header by clicking a link in TOC

正在使用
10+
评分
3.5 / 5
累计下载
5,042
最近更新
2015年10月7日
2 条评价需要 WordPress 4.2+已测试到 4.3.34

截图

WordPress Admin: Plugins page - a summary of the plugin with quick action links to plugin's Settings and Documentation on github webiste .
WordPress Admin: Plugins page - a summary of the plugin with quick action links to plugin's Settings and Documentation on github webiste .
WordPress Admin: Settings page - plugin's default settings. These settings will be used when a shortcode [hm_content_toc] is specified without attributes. Shortcode attribute takes precedence over default settings.
WordPress Admin: Settings page - plugin's default settings. These settings will be used when a shortcode [hm_content_toc] is specified without attributes. Shortcode attribute takes precedence over default settings.
WordPress Admin: Pages - example of a page that uses [hm_content_toc] shortcode with its attributes, to specify title that appears before TOC and HTML element names used to generate the TOC.
WordPress Admin: Pages - example of a page that uses [hm_content_toc] shortcode with its attributes, to specify title that appears before TOC and HTML element names used to generate the TOC.
Main website: Example of a page with generated TOC with specified parameters.
Main website: Example of a page with generated TOC with specified parameters.
Main website: Example of a page when a link from the TOC is clicked. In this case, the Heading #3 - third level link from the TOC is clicked, a visitor is taken to that heading within the page content. The URL uses an anchor that has been inserted before the heading in the page content.
Main website: Example of a page when a link from the TOC is clicked. In this case, the Heading #3 - third level link from the TOC is clicked, a visitor is taken to that heading within the page content. The URL uses an anchor that has been inserted before the heading in the page content.
WordPress Admin: Integration with Shortcake UI - the view when Add Media button is clicked. The Insert Post Element tab lists all registered shortcodes with Shortcake. The HM Content TOC is present to be inserted into post/page content.
WordPress Admin: Integration with Shortcake UI - the view when Add Media button is clicked. The Insert Post Element tab lists all registered shortcodes with Shortcake. The HM Content TOC is present to be inserted into post/page content.
WordPress Admin: Integration with Shortcake UI - the view when HM Content TOC box was clicked, allowing for shortcode parameters to be specified.
WordPress Admin: Integration with Shortcake UI - the view when HM Content TOC box was clicked, allowing for shortcode parameters to be specified.

The plugin provides:

  • Shortcode [hm_content_toc] with title and headers attributes.
    The shortcode should be inserted into post/page content with optional attributes
    Example: [hm_content_toc title="TOC title" headers="h2, h3, h4"]
  • Plugin settings to specify default TOC settings for title and header, which will
    be used in case a shortcode is specified without attributes, i.e. [hm_content_toc]
    Plugin’s defaults are: empty title and headers h2, h3, h4, h5, h6
  • Integration with “Shortcake (Shortcode UI)” plugin

Bugs or feature requests

To report bugs or feature requests, please use Github issues.

Translations

  • English – default, always included
  • Русский (Russian) by Dasha Luna
  • Italiano (Italian) by Franz Vitulli
  • Português (Portuguese – Portugal) by Ana Silva

Note: All my plugins are localized/translatable by default. This is very important for
all users worldwide. So please contribute your language to the plugin to make it even more useful.
Please read the instructions on how to contribute a translation.

License: GPLv2 or later

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

Plums

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

导航

说明

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

© 2026 Plums