Fast Jump Table of Contents

19

A lightweight WordPress plugin that automatically generates a jump-link based table of contents from H2 headings.

The plugin scans the page or post content, extracts all <h2> headings, and builds a clean, accessible table of contents using anchor links. It is designed to be minimal, fast, and predictable, without adding unnecessary settings pages or database overhead.

Fast Jump Table of Contents:

  • scans the content for <h2> headings
  • generates a table of contents with anchor links
  • automatically adds missing id attributes to H2 headings
  • preserves existing heading attributes (class, style, etc.)
  • respects existing id values and never overwrites them

The table of contents can be placed anywhere in the content using a shortcode.

Shortcode usage

[fast_jump]

The shortcode outputs only the table of contents.

How heading IDs are handled

If an H2 heading does not have an id, the plugin assigns one automatically in a sequential format:

h2-1
h2-2
h2-3

If an H2 already contains an id, it is left untouched.

No database changes are made; IDs are injected at render time.

Editor compatibility

  • Gutenberg (Block Editor)
  • Classic Editor
  • Mixed HTML content

The plugin works purely on rendered content and does not depend on editor-specific metadata.

Performance and safety

  • No admin pages
  • No settings UI
  • No database writes
  • No background processes
  • No cron jobs

All processing happens only when H2 headings are present in the content.

Typical use cases

  • Long-form blog posts
  • Tutorials and documentation
  • Knowledge base articles
  • SEO-optimized content with clear structure

There are no reviews yet.

Be the first to review “Fast Jump Table of Contents”

Your email address will not be published. Required fields are marked *