Mocursor Smart TOC
A powerful, lightweight Gutenberg block that automatically generates a linked, navigable table of contents from your post headings.
Solid choice
Mocursor Smart TOC is a solid plugin choice in 2026, with a few things worth checking first. It runs on 90+ sites, is rated 5/5 and was last updated 3 months ago, and scores 65/100 on our health check.
- Tested with the latest WordPress (7.1)
- Small user base (90+ active installs)
- Very few reviews so far
Daily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 5 from 1 reviews
About Mocursor Smart TOC
From the official readme · v1.1.0Description
Mocursor Smart TOC is a lightweight, feature-packed Gutenberg block that automatically generates a linked table of contents from the headings in your posts and pages. Simply drop it into your content — it just works. Also available as a [mctoc] shortcode for classic editor users.
The block is fully dynamic, accessible, lightweight, and theme-aware. It uses WordPress design tokens and CSS custom properties so it inherits your theme’s colors, fonts, and spacing automatically.
Shortcode Support
The Mocursor Smart TOC block is also available as a [mctoc] shortcode for use in the classic editor, widgets, or theme templates.
Basic usage:
[mctoc]
With options:
[mctoc title="On This Page" include_h2="true" include_h3="true" include_h4="false" numbering="nested" collapsed="true" sticky="true" offset="100" skip="1" exclude_headings="Related Posts,Comments" back_to_top="true" align="right" justify=""]
Available shortcode attributes:
title— TOC heading text (default: “Table of Contents”)include_h2— Include H2 headings: “true” or “false” (default: “true”)include_h3— Include H3 headings: “true” or “false” (default: “true”)include_h4— Include H4 headings: “true” or “false” (default: “true”)exclude_headings— Comma-separated heading texts to excludenumbering— Numbering style: “none”, “decimal”, or “nested” (default: “none”)collapsed— Start collapsed: “true” or “false” (default: “false”)sticky— Enable sticky mode: “true” or “false” (default: “false”)offset— Scroll offset in pixels for fixed headers (default: 80)skip— Number of headings to skip from the start (default: 0)back_to_top— Show “Back to Top” link: “true” or “false” (default: “false”)align— Floating block alignment: “left”, “center”, or “right”. Left/right allow nearby content to wrap beside the TOC.justify— No-wrap TOC position: “left”, “center”, or “right”. Surrounding content stays above and below the TOC.
Ideal Use Cases
Mocursor Smart TOC is perfect for:
- Long-form blog posts — Help readers navigate 2,000+ word articles with ease.
- Documentation and knowledge bases — Technical docs, how-to guides, and reference pages.
- Online courses and tutorials — Give learners a clear roadmap of every lesson section.
- Legal, policy, and compliance pages — Terms of service, privacy policies, and similar documents.
- Product and feature pages — Long product descriptions with multiple sections.
- Recipe and travel blogs — Readers can jump to the section they care about.
- Wiki-style internal sites — Any WordPress site used as an internal wiki or resource library.
- Accessibility-focused sites — The TOC gives keyboard and screen reader users a reliable way to navigate.
- Classic editor users — The shortcode works perfectly in the classic editor.
Why Choose Mocursor Smart TOC?
- Zero configuration needed — Drop the block in and it works immediately.
- 100% Gutenberg-native + Shortcode — Built as a real Gutenberg block with a classic shortcode fallback.
- Dynamic and always up to date — Server-rendered, always matches the current content.
- Incredibly lightweight — No JavaScript frameworks. Pure vanilla JS for all interactivity.
- Deeply customizable — Rich inspector controls for heading levels, numbering, collapsibility, sticky mode, and more.
- Accessible by default — Proper ARIA attributes, keyboard navigation, semantic HTML, and focus management.
- Theme-aware — Uses WordPress design tokens and CSS custom properties.
- No lock-in — Deactivate the plugin and your content is untouched.
- Privacy-friendly — No external requests, no tracking, no analytics, no cookies.
- Open source — Licensed under GPLv2.
Block Features
- Automatic heading detection for H2, H3, and H4
- Heading level filtering with individual checkboxes
- Exclude specific headings by text
- Skip first N headings option
- Three numbering styles: None, Decimal, Nested
- Collapsible TOC with configurable default state
- Smooth scrolling with configurable offset
- Active heading highlight via IntersectionObserver
- Back to Top link
- Sticky mode
- Live editor preview
- Full block editor design controls (colors, typography, spacing, borders)
- Left, center, and right floating alignment using native block controls
- Left, center, and right no-wrap justification for positioning without shifting surrounding content beside the TOC
- Shortcode support with full attribute control
How to Use
Method 1: Block Editor
- Install and activate the plugin.
- Open any post or page in the block editor.
- Click the block inserter (+), search for “Mocursor Smart TOC”, and insert the block.
- For a floating layout where text can wrap beside the TOC, use the block toolbar alignment (left, center, or right).
- For positioning without text wrapping, open Layout → Justify TOC (No Text Wrap) and choose Left, Center, or Right.
- Publish — the TOC renders with smooth scrolling and active heading tracking.
Method 2: Shortcode
- In any post, page, or widget, type
[mctoc]. - Optionally use floating alignment:
[mctoc title="Contents" numbering="decimal" align="left"]. - Or use no-wrap positioning:
[mctoc title="Contents" numbering="decimal" justify="right"].
Method 3: PHP Template
<?php echo do_shortcode( '[mctoc title="Page Contents" numbering="nested"]' ); ?>
Tips:
- Place the TOC inside a Group block with a max-width for a contained look.
- Enable sticky mode for sidebar layouts.
- Use the shortcode in classic editor widgets or template files.
Changelog
Adds two TOC layout modes: native floating alignment and a clearly visible no-wrap position control, each with left, center, and right options.
1.1.0
- Added left, center, and right alignment options using WordPress native block alignment controls, including floating left/right layouts where surrounding content can wrap.
- Added separate no-wrap left, center, and right positioning controls in the block toolbar and sidebar, keeping surrounding content above and below the TOC.
- Added
alignandjustifyshortcode layout attributes withleft,center, andrightvalues. - Added responsive alignment styling for narrow screens.
- Synchronized frontend asset cache versions with the plugin release version.
1.0.2
- Added
[mctoc]shortcode support with full attribute control. - Enqueue frontend assets (CSS and JS) on shortcode usage for classic editor compatibility.
1.0.1
submitted to the plugins review team and added Documentation and plugin uri
0.1.0
- Initial release with Table of Contents block.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
FAQ
Mocursor Smart TOC: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Mocursor Smart TOC free?
Yes. Mocursor Smart TOC is free to download and use from the official WordPress.org plugin directory.
Is Mocursor Smart TOC safe to use in 2026?
Mocursor Smart TOC is a solid plugin choice in 2026, with a few things worth checking first. It runs on 90+ sites, is rated 5/5 and was last updated 3 months ago, and scores 65/100 on our health check.
How many websites use Mocursor Smart TOC?
Mocursor Smart TOC is active on 90+ WordPress websites and has been downloaded 2,080 times since it launched in May 2026. It was downloaded 158 times in the last 30 days.
Does Mocursor Smart TOC work with WordPress 7.1?
Yes. The developer has tested Mocursor Smart TOC up to WordPress 7.1.5, the latest release. It requires WordPress 6.4 or newer.
What PHP version does Mocursor Smart TOC need?
Mocursor Smart TOC requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Mocursor Smart TOC last updated?
The latest version, 1.1.0, was released on August 28, 2026 (3 months ago).
Who makes Mocursor Smart TOC?
Mocursor Smart TOC is developed and maintained by Moses Cursor Ssebunya.
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card