WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by James Kemp v1.0.3

Shortcode Table of Contents

Display an automated table of contents via shortcode.

Shortcode Table of Contents

The facts

Rating
4.7★ from 6
Active installs
200+
Price
Free
Last updated
31 Jul 2018
Added
Nov 2017
Requires WP
4.0
Tested up to
WP 4.9.31
Downloads
28,273

Our analysis

AI-assisted

Shortcode Table of Contents is a WordPress plugin that generates a table of contents for HTML content using a simple shortcode. You can specify the content container, include specific heading selectors, and customize various parameters such as speed, anchor class, and scroll spy functionality.

This plugin is suitable for users who want to enhance their content navigation by providing a structured overview of headings within their posts or pages. It is particularly useful for lengthy articles where readers may benefit from quick access to different sections.

Best for: This plugin is best for content creators looking to improve navigation in long-form articles.

What it does well

  • Generates a table of contents automatically
  • Customisable with various shortcode parameters
  • Supports scroll spy functionality

Where it falls short

  • Limited information on additional features
  • Last updated in July 2018, may not be fully compatible with newer WordPress versions

Verdict

Shortcode Table of Contents offers a straightforward solution for adding navigational aids to content, though its age may affect compatibility with the latest WordPress updates.

From the developer

James Kemp's own description of Shortcode Table of Contents, lightly tidied.

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.

Read the full description on the official page →

Tagged as