Skip to main content
Agency Program Get 2× more leads and save 50% on hosting. Built for agencies ready to grow. Book a call
Table of Contents Plus icon

Table of Contents Plus

v2411.1
by Syed Balkhi · 4.4 (159 reviews)

A powerful yet user friendly plugin that automatically creates a table of contents. Can also output a sitemap listing all pages and categories.

200K+ active installs Updated Nov 21, 2024 Tested to 6.7.4
Try Demo Download
Pre-installed Ready in ~10s No card

About Table of Contents Plus

The Table of Contents Plus plugin is a powerful and user-friendly tool that automatically creates an index or table of contents for long pages and custom post types. It also has the ability to generate a sitemap listing all the pages and categories on your site. With customizable settings and shortcode options, this plugin is a great companion for content-rich sites and bloggers writing long articles.

Screenshots

Table of Contents Plus screenshot
Table of Contents Plus screenshot
Table of Contents Plus screenshot
Table of Contents Plus screenshot
Table of Contents Plus screenshot
Table of Contents Plus screenshot

Frequently asked questions

What does this plugin do?
This plugin automatically creates a context specific index or table of contents for long pages and custom post types. It can also output a sitemap listing pages and/or categories across your entire site.
How does the table of contents appear on a page?
The table of contents by default appears before the first heading on a page. This allows the author to insert lead-in content that may summarize or introduce the rest of the page.
Can I customize the settings of the plugin?
Yes, the plugin includes an administration options panel where you can customize settings like display position, define the minimum number of headings before an index is displayed, and adjust the appearance, among other options.
Can I use shortcodes with this plugin?
Yes, the plugin provides shortcodes that allow you to generate the table of contents at a preferred position, disable the table of contents for a specific post or page, and produce a listing of all pages and categories for your site, among other functionalities.
How can I show my appreciation for this plugin?
If you have been impressed with this plugin, you can donate to your charity of choice as a way to show appreciation. The plugin author does not ask for any form of reward or compensation.

Changelog

2411.1

  • Released: 21 November 2024
  • Security hardening reported by WPScan

2411

  • Released: 14 November 2024
  • Security hardening reported by Patchstack
  • Plugin updates for compatibility with Plugin Check

2408

  • Released: 14 August 2024
  • Redo XSS issue reported by wpscan

2406

  • Released: 16 June 2024
  • Revert ‘Do not output CSS/JS on pages not eligible’ introduced in 2402 as it broke some clever edge cases
  • Fixed XSS issue requiring editor or higher privileges for show/hide text (thanks to wpscan)

2402.1

  • Released: 22 February 2024
  • Fixed check for shortcode use (#164)

2402

  • Released: 21 February 2024
  • Added option to generate TOC in REST requests, disabled by default (props ballpumpe)
  • Composer improvements (props mohjak)
  • Do not output CSS/JS on pages not eligible
  • Update POT translation file
  • Update links to help

2311

  • Released: 7 November 2023
  • Bump tested WordPress version to 6.4
  • Do not trigger on REST requests (props steffenster)
  • Update include mechanism in init.php (props maciejmackowiak)

2309

  • Released: 19 September 2023
  • Bump tested version to 6.3.1
  • Added child_of property to sitemap_pages shortcode (props flagsoft). This lets you output a listing of child pages for a set parent or “current”. Property is optional and defaults to all pages.
  • Fixed XSS possibility handling nonce while saving options (thanks to Patchstack)
  • Updated WordPress Coding Standard to 3.0

2302

  • Released: 9 February 2023
  • Added toc_brackets CSS class to square brackets around show/hide text
  • Added a filter to the toc_extract_headings function (props Raymond Radet)
  • Refactor using WordPress-Extra coding standard

2212

  • Released: 16 December 2022
  • Bump tested version to 6.1.1
  • When using the TOC+ widget, execute shortcodes beforehand (props endcoreCL)
  • When using the TOC+ widget, abort early when no post for edge cases (props jonas-hoebenreich)
  • Add start property to toc shortcode to override the minimum number of headings needed to display (props woutervanvliet)
  • Add no_numbers property to toc shortcode to disable leading heading indexes (props TedAvery)
  • Fixed XSS vulnerability in toc shortcode, class property (thanks to wpscan)
  • Fixed XSS vulnerabilities in sitemap_pages and sitemap_categories shortcodes, label property

2106

  • Released: 23 June 2021
  • Add compatibility with Rank Math SEO
  • Bump tested WordPress version to 5.7
  • Add PHP coding style
  • Adhere to majority of coding tips

2002

  • Released: 9 February 2020
  • Fixed encoding when using %PAGE_TITLE% or %PAGE_NAME%
  • Bump tested WordPress version to 5.3
  • Removed all local translations as you can find more up to date ones at translate.wordpress.org
  • Removed translators links from readme

1601

  • Released: 5 January 2016
  • Bump tested WordPress version to 4.4
  • Add ‘enable’ and ‘disable’ API functions so a developer can better control the execution.
  • Add Brazilian Portuguese translation thanks to Blog de Niterói
  • Add Spanish translation thanks to David Saiz
  • TOC+ widget now adheres to a blank title if none provided. Thanks to Dirk for the cue.
  • Updated jQuery Smooth Scroll 1.5.5 to 1.6.0
  • Updated text domain to better support translation packs.

1509

  • Released: 4 September 2015
  • Added Hebrew translation thanks to Ahrale
  • Added Japaense translation thanks to シカマル
  • Added Greek translation thanks to Dimitrios Kaisaris
  • Updated jQuery Smooth Scroll 1.4.10 to 1.5.5
  • Supply both minified and unminified CSS and JS files, use minified versions.
  • Convert accented characters to ASCII in anchors.
  • Bump tested WordPress version to 4.3
  • Fixed: PHP notice introduced in WP 4.3
  • Fixed: javascript error with $.browser testing for Internet Explorer 7.
  • Plugin has moved to GitHub for better collaboration.
  • Help needed: preg_match_all failing with bad UTF8 characters producing no TOC. If you can help, please participate in this issue.

1507

  • Released: 5 July 2015
  • Added Danish translation courtesy of Cupunu
  • Simplified the translation duty by moving the help material to the plugin’s website.
  • Updated translation file.

1505

  • Released: 2 May 2015
  • Huge thanks to Jason for an updated Simplified Chinese translation.
  • Added collapse property to the toc shortcode. When set to true, this will hide the table of contents when it loads. Example usage: [toc collapse=”true”]
  • Added label_show and label_hide properties to the toc shortcode. This lets you change the “show” and “hide” link text when using the shortcode.
  • Bump tested WordPress version to 4.2.1.

1408

  • Released: 1 August 2014
  • Added a human German translation courtesy Ben
  • Added “class” attribute to the TOC shortcode to allow for custom CSS classes to be added to the container. Thanks to Joe for suggesting it

1407

  • Released: 5 July 2014
  • Added Ukrainian translation courtesy Michael Yunat
  • Added French translation courtesy Jean-Michel Duriez
  • Empty headings are now ignored, as suggested by archon810
  • Removed German translation, may have been machine translated, ref
  • Fixed: Special chars in TOC+ > Settings > Exclude Headings no longer get mangled on save. Thanks to N-Z for reporting it.

1404

  • Released: 18 April 2014
  • Bump WordPress support to 3.9
  • Fixed: Strip HTML tags from post titles for sitemap_posts so those items do not appear under a < heading. Thanks to Rose for reporting it.
  • Fictitious: This release was powered by three blind mice.

1402

  • Released: 19 February 2014
  • Added German translation courtesy Cord Peter
  • Modify toc_get_index API function to also reset minimum number of headings to 0.
  • Removing the TOC+ widget from the sidebar no longer requires you to uncheck the ‘Show the table of contents only in the sidebar’ option. It will be reset on removal.
  • Delay count of headings until disqualified have been removed. Thanks to Simone di Saintjust for raising it.
  • Using the TOC+ widget, you can now limit the display to selected post types. Thanks to Pete Markovic for the idea.
  • Updated translation file (extra options added).

1311

  • Released: 10 November 2013
  • Added third parameter to toc_get_index API function to enable eligibility check (eg apply minimum heading check, is post type enabled, etc). This has been switched off by default and only affects those using the API. Thanks Jonon for your comment.
  • Added Dutch translation courtesy Renee
  • Apply bullet option to TOC+ widget, thanks to Thomas Pani for the patch.

1308

  • Released: 5 August 2013
  • Fix javascript issue with minimum jQuery version check (broke smooth scrolling using WordPress 3.6).
  • Replaced Slovak translation with a human translated version courtesy Boris Gereg.
  • Remove signature from source when using the shortcode but not allowed to print (eg on homepage).
  • Add “separate” attribute for sitemap_posts shortcode to not split by letter, thanks DavidMjps for the suggestion.

1303.1

  • Released: 22 March 2013
  • New: added Polish translation, curtesy Jakub
  • Fixed: an issue in 1303 that ignored headings with the opening tag on the first line and the heading text on a new line. Thanks to richardsng for the quick discovery.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…