This plugin is outdated and might not be supported anymore
Shortcode Table of Contents

Shortcode Table of Contents

Details
View on WordPress

Simply use the [toc content=".your-container"] shortcode to automatically generate a table of contents for any HTML container.

The shortcode accepts a number of parameters:

  • content string required
    A CSS selector indicating the container of your content.
  • headers string
    A comma separated list of heading selectors that you want to include.
  • speed int
    Speed of sliding back to top.
  • anchor-class string
    Class of anchor links.
  • anchor-text string
    Prepended or appended to anchor headings. Leave blank to disable anchor links.
  • top_class string
    Back to top button or link class.
  • spy true/false
    Enable scroll spy. This will highlight the list items as you scroll past them.
  • position append/prepend
    Position of anchor text.
  • spy-offset int
    Specify heading offset for spy scrolling.

Details

Plugin code:
shortcode-toc
Plugin version:
1.0.3
Author:
Outdated:
Yes
WP version:
4.0 or higher
PHP version:
or higher
Test up to WP version:
4.9.26
Total installations:
300
Last updated:
2018-07-31
Rating:
Times rated:
6
anchorific
anchors
shortcode-table-of-contents
table-of-contents
toc