Skip to content

Simple, fast and theme-agnostic WordPress plugin that auto-generates a clean Table of Contents (TOC) from post headings. Perfect for SEO, readability, and accessibility — with smooth scroll and zero configuration.

License

Notifications You must be signed in to change notification settings

stantchev/WP-TOC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WP-TOC

Modern, lightweight Table of Contents for WordPress. Auto-generates a TOC from headings, supports shortcode and widget, and is translation-ready.

Quick links: Website · Issues · Changelog

Highlights

  • Auto-generate TOC from H1–H6
  • Auto-insert per post type or via shortcode/widget
  • Smooth scroll and hierarchy, counters inside/outside
  • Sticky TOC widget with toggle
  • Works with Classic/Gutenberg/Elementor/Divi/WPBakery
  • Fully translatable; admin UI language can be forced in settings

Installation

  1. Upload to wp-content/plugins/wp-toc/ or install via WP Admin → Plugins.
  2. Activate.
  3. Go to Settings → Table of Contents to configure.

Usage

  • Auto insert: Settings → Table of Contents → General → Auto Insert.
  • Shortcode in content: [ez-toc]
  • Sticky widget: Appearance → Widgets → TOC Sticky

Shortcode options:

  • header_label="Title"
  • display_header_label="no"
  • toggle_view="no"
  • initial_view="hide|show"
  • display_counter="no"
  • heading_levels="2,3"
  • class="custom_toc"

Localization

  • Text domain: easy-table-of-contents
  • Place .mo/.po in languages/
  • Force admin UI language: Settings → Table of Contents → General → Plugin UI Language

Pictures

  • Desktop

    TOC Plugin Screenshot Desktop
  • Mobile

    TOC Plugin Screenshot Mobile

Support

Use the Technical Support tab in the plugin settings. Messages go to seo@stanchev.bg.

License

GPLv3. See LICENSE.

Contributing

PRs welcome. Please open issues with clear repro steps.

About

Simple, fast and theme-agnostic WordPress plugin that auto-generates a clean Table of Contents (TOC) from post headings. Perfect for SEO, readability, and accessibility — with smooth scroll and zero configuration.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published