Creates content TOC (table of contents) for specified header elements from the current post/page content. Adds anchor elements in the content just before the matched headers.
Built by Dasha Luna at Human Made.
Home page: https://github.com/dashaluna/hm-content-toc
Author: | Dasha Luna at Human Made (profile at wordpress.org) |
WordPress version required: | 4.2 |
WordPress version tested: | 4.3.1 |
Plugin version: | 1.0.1 |
Added to WordPress repository: | 06-10-2015 |
Last updated: | 07-10-2015
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 70 |
Rated by: | 2 |
Plugin URI: | |
Total downloads: | 4 076 |
Active installs: | 30+ |
Click to start download
|
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
Screenshots
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: 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 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 HM Content TOC
box was clicked, allowing for shortcode parameters to be specified.
FAQ
1. What versions of WordPress are supported?
The plugin has been extensively tested on both standard and multisite installations
for the following WordPress versions:
ChangeLog
1.0.1
- Removed a full stop at the end of the plugin description as it was too long by WP standards – doh!