Skip to content
NINJA
← All plugins
WordPressSEOContent
NINJA Table of Contents icon

NINJA Table of Contents

Auto-generate a clean, accessible table of contents from your post headings, plus a reading-time badge. Zero config, no front-end JavaScript.

// features
  • Automatic nested TOC from h2–h6 headings.
  • Reading-time estimate badge.
  • [ninja_toc] and [ninja_reading_time] shortcodes.
  • Per-post-type rules, min-heading threshold, positions.
  • Accessible markup, brandable colours, smooth scroll.
// overview

What it does

NINJA Table of Contents reads the headings in your posts and pages and builds a tidy, nested, anchor-linked table of contents automatically — plus an optional reading-time badge. It's accessible, brandable and needs no front-end JavaScript to render.

Highlights

  • Automatic nested TOC from h2–h6 headings, with unique anchor IDs injected for you.
  • Reading-time estimate badge (configurable words-per-minute).
  • [ninja_toc] and [ninja_reading_time] shortcodes for manual placement.
  • Per-post-type rules, a minimum-heading threshold, and several positions.
  • Accessible markup, brand colours, and smooth in-page scrolling.

Self-contained and lightweight. Extend the markup via the ninjatoc_html filter.

// adapt or extend
Need NINJA Table of Contents customized?

Open a ticket and we'll scope the change. We add features, swap providers, or branch the plugin entirely if you need something close-but-not-quite.