Display an automated table of contents via shortcode.
As of April 2026, Shortcode Table of Contents is a WordPress toc plugin with 300 active installations and a 4.7/5 rating from 6 reviews. It has been downloaded 27K+ times in total. Requires WordPress 4.0+ and PHP false+. Available on WordPress.org since 2017. Last updated 7 years ago — may have compatibility concerns. Top alternative: Easy Table of Contents.
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 requiredheaders stringspeed intanchor-class stringanchor-text stringtop_class stringspy true/falseposition append/prependspy-offset int| WordPress | 4.0+ requiredTested up to 4.9.29 |
| PHP | false+ required |
v1.0.3 (31/07/2018)
[fix] Revert back to original anchorific. Bower one was an old version.
v1.0.2 (01/12/2017)
[update] Use latest anchorific.
v1.0.1 (30/11/2017)
[update] Remove anchor text by default.
[fix] Ensure ‘spy’ param works with true/false values.
v1.0.0 (29/11/2017)
[release] Initial release.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.