Contributors: dashaluna, tcrsavage, johnbillion, sanchothefat
Tags: TOC, TOC shortcode, shortcode, content TOC, post TOC, page TOC, TOC for content, table of content, table of contents, HM, Human Made
Requires at least: 4.2
Tested up to: 4.3
Stable tag: 1.0.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
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
The plugin provides:
[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"]
[hm_content_toc]
Plugin's defaults are: empty title and headers h2, h3, h4, h5, h6
HM Content TOC can be installed like any other WordPress plugin.
hm-content-toc
to the /wp-content/plugins/
directory.Plugin settings will be added to WordPress Settings admin menu,
i.e. Settings -> HM Content TOC Settings
, to specify the default settings for the
plugin.
The settings page is visible only for users who can manage options, by default it is super administrators and administrators.
[hm_content_toc]
shortcode in your post/page content to generate
TOC for specified headers from that post/page content.The plugin has been extensively tested on both standard and multisite installations for the following WordPress versions:
To report bugs or feature requests, please use Github issues.
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.
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.