Install it, and every post that needs a table of contents gets one. That is the whole setup. FlexiTOC reads the final rendered page — Gutenberg blocks, classic content, shortcode output — finds the headings, gives them stable anchor links, and builds the navigation in one pass. Because the TOC and t
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 6.5 and PHP 7.4.
SourceWordPress plugins · Nov 28, 2026
01 / Source details
Aboutthistool.
Install it, and every post that needs a table of contents gets one. That is the whole setup.
FlexiTOC reads the final rendered page — Gutenberg blocks, classic content, shortcode output — finds the headings, gives them stable anchor links, and builds the navigation in one pass. Because the TOC and the anchors come from the same pass, they cannot drift apart: no orphaned links, no “TOC shows a heading I deleted”, no anchors pointing nowhere. That same reliability makes it SEO-friendly — and just as usable for readers: choose exactly which heading levels appear, or flatten the hierarchy entirely, so a long page gets a clean list instead of a wall of deeply nested levels.
Authors stay in control without ever maintaining a list:
Every Heading block gets a simple choice — include, exclude, or just follow the site’s level defaults. Force one important H5 into the TOC, or drop a noisy H2 out, without touching global settings.
Give any heading a shorter TOC-only label (“Getting started with the plugin” can appear as just “Getting started”). The visible heading never changes.
Manage every heading from one place: the FlexiTOC Headings panel in the editor sidebar lists them all with toggles, labels, search, and bulk actions.
Choices are stored on the heading itself — rename it, move it, drag it around: your curation survives, because there is nothing to re-match.
One engine, three doors
However you place it, the same engine renders it:
Automatic – pick position and post types once in Settings. Each post can override the position, or opt out, in the FlexiTOC Display panel.
Block – put the FlexiTOC block exactly where you want it: in the post, in a sidebar, in a Site Editor template (it follows the post it sits next to, including inside a Query Loop). Sticky, “highlight current section”, and a flat (non-indented) heading hierarchy make it a proper documentation sidebar.
Shortcode – [flexitoc] for classic content and page builders, including Elementor and Divi.
Inherits your theme’s colors and typography — including dark themes. Three style presets (Default, Boxed, Minimal) plus the native block color, border, spacing and typography controls when you want more.
Clean, accessible markup: a real nav landmark, native details collapsing (no JS), aria-current on the active link, reduced-motion respected.
Loads nothing on pages without a TOC. The optional scroll-spy script is under 1 KB.
Never rewrites your stored content — anchors are added at render time with WordPress’s HTML API. Deactivate the plugin and your content is exactly as it was.
A “Fixed header offset” setting keeps anchors, the sticky block and the section highlight clear of fixed headers.
Hidden headings ( hidden , aria-hidden ) are ignored automatically.
Writing in Bengali, Devanagari, Japanese, Arabic, Cyrillic or any non-Latin script? Your headings get complete, readable anchor links automatically — no setting to find, and none of the truncation or collisions that percent-encoded anchors cause.
For developers and page builders
Utility classes work anywhere, on the heading or a wrapper: flexitoc-include , flexitoc-exclude (or no-toc ) on headings or their containers; flexitoc-ignore on a container to skip everything inside it.
Filters: flexitoc_headings (the list an instance will show), flexitoc_html (final markup), flexitoc_settings (effective settings).
Existing heading ids are always respected, and generated ids never collide with any id already in the document.
See it in action
Screenshots & previews.
The table of contents on a post, inheriting the theme's look.Per-heading controls on the Heading block.The FlexiTOC Headings manager panel.Settings page.
02 / Source details
Gettingstarted.
01Install FlexiTOC from Plugins → Add New (search “FlexiTOC”), or upload the zip from Plugins → Add New → Upload Plugin.
02Activate it. That’s it — the next eligible post or page gets a table of contents automatically.
03To adjust position, heading levels, or style, visit Settings → FlexiTOC. To place it manually instead, use the FlexiTOC block or the [flexitoc] shortcode.
03 / Source details
Frequently asked questions.
Will FlexiTOC slow down my site?
No measurable impact on pages without a TOC — no CSS or JS loads unless a TOC actually renders. Even where it does, the stylesheet is small and the optional scroll-spy script (only loaded if you enable “highlight current section”) is under 1 KB.
Is FlexiTOC really free — will there be a paid upgrade later?
Yes, really free, and it stays that way. There is no Pro tier, no feature paywall, and no upsell nags. Every feature described on this page — automatic insertion, per-heading control, sticky sidebar, the works — is in the free plugin, permanently.
Why doesn’t the TOC appear on a post?
By default it needs at least 2 eligible headings (configurable). A TOC listing one entry is noise, so the automatic mode skips it — but a block or shortcode you placed yourself always renders.
Where do I include/exclude a single heading?
Select the heading block and use its “Table of contents” panel — or open FlexiTOC Headings in the document sidebar to manage all of them at once. In the classic editor or a page builder, add the flexitoc-include / flexitoc-exclude CSS class instead.
How do per-heading choices interact with heading levels?
Levels are the default; explicit choices win. A heading you explicitly include shows even if its level isn’t selected, and one you exclude never shows. Headings you never touched simply follow the effective levels (block setting → per-post setting → site default).
Does it modify my post content in the database?
No. Anchor ids are injected at render time only. Your stored content is never touched.
Can I put it in a sidebar or template?
Yes — the FlexiTOC block works in widget areas, template parts and Site Editor templates, and shows the TOC of the post being viewed. Enable Sticky and “Highlight current section” for a documentation-style sidebar.
What are the shortcode options?
[flexitoc title=”Contents” levels=”2,3″ list=”ol” hierarchy=”flat” collapse=”closed” sticky=”1″ scrollspy=”1″ class=”my-class”] — every attribute is optional; anything you omit inherits the global settings. list accepts ul (bulleted), ol (numbered), or none (no marker). hierarchy accepts nested (default) or flat (single level — best for sidebars).
A post shouldn’t have an automatic TOC — how do I turn it off?
Open FlexiTOC Display in that post’s sidebar and choose “Do not auto-insert” (or a different position for just that post). Manual blocks and shortcodes are not affected.
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati