Title: Imran Table of Contents
Author: imranacademy
Published: <strong>March 27, 2026</strong>
Last modified: March 27, 2026

---

Search plugins

![](https://ps.w.org/imran-table-of-contents/assets/banner-772x250.png?rev=3492281)

![](https://ps.w.org/imran-table-of-contents/assets/icon-256x256.png?rev=3492281)

# Imran Table of Contents

 By [imranacademy](https://profiles.wordpress.org/imranacademy/)

[Download](https://downloads.wordpress.org/plugin/imran-table-of-contents.1.0.0.zip)

 * [Details](https://en-au.wordpress.org/plugins/imran-table-of-contents/#description)
 * [Reviews](https://en-au.wordpress.org/plugins/imran-table-of-contents/#reviews)
 *  [Installation](https://en-au.wordpress.org/plugins/imran-table-of-contents/#installation)
 * [Development](https://en-au.wordpress.org/plugins/imran-table-of-contents/#developers)

 [Support](https://wordpress.org/support/plugin/imran-table-of-contents/)

## Description

Imran Table of Contents is a lightweight, fast, and highly customizable TOC plugin
for WordPress.

It automatically generates a clean and user-friendly table of contents based on 
your headings and helps improve user experience, navigation, and SEO.

🚀 Key Features:

 * Automatic TOC generation
 * Manual shortcode support [imran_toc]
 * Works with Elementor and Gutenberg
 * Heading control (H1–H6 selection)
 * Sticky sidebar TOC
 * Mobile floating TOC
 * Collapse / expand option
 * Smooth scrolling and scrollspy
 * Search inside TOC
 * Click analytics tracking
 * Dark mode support
 * Insert position control

⚡ Performance Focused:
 This plugin is lightweight and does not rely on heavy external
libraries.

🎯 Perfect for:

 * Bloggers
 * SEO experts
 * Affiliate marketers
 * Content-heavy websites

📌 Usage:
 Simply install and activate. The TOC will appear automatically, or use
the shortcode anywhere: [imran_toc]

This plugin is designed to give you full control over your content structure while
keeping everything simple and fast.

All options:
 [imran_toc title=”Table of Contents” headings=”h2,h3,h4″ list=”ul”
position=”top” max=”0″ exclude_text=”Intro,Summary” smooth=”true” spy=”true” sticky
=”false”]

#### Shortcode Parameters

 * **title** — TOC box heading text. Default: `"Table of Contents"`
 * **headings** — Comma-separated heading tags to include. Default: `"h2,h3,h4"`
 * **list** — List style: `ul` (unordered) or `ol` (ordered). Default: `"ul"`
 * **position** — Where to place the TOC: `top`, `bottom`, `after_first_paragraph`,`
   after_first_h2`. Default: `"top"`
 * **max** — Maximum headings to show. `0` means unlimited. Default: `0`
 * **exclude_text** — Comma-separated heading texts to skip. Default: empty
 * **smooth** — Smooth scroll on click: `true` or `false`. Default: `"true"`
 * **spy** — Highlight active section while scrolling: `true` or `false`. Default:`"
   true"`
 * **sticky** — Stick TOC while scrolling: `true` or `false`. Default: `"false"`

### License

This plugin is licensed under GPLv2 or later.
 See: https://www.gnu.org/licenses/
gpl-2.0.html

## Installation

 1. Upload the `Imran Table of Contents` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Settings  Imran TOC** to configure defaults.
 4. Optionally place `[imran_toc]` in any post or page to override auto-insert position.

## FAQ

### Does this plugin slow down my site?

No. It uses vanilla JavaScript (no jQuery) and injects minimal inline CSS/JS only
on pages where the TOC is displayed.

### Can I use the shortcode and auto-insert at the same time?

No — if `[imran_toc]` is found in the post content, auto-insert is automatically
disabled for that post to prevent duplicates.

### How do I exclude a heading from the TOC?

Use the **Exclude by Text** field in **Settings  Imran TOC**, or use the `exclude_text`
shortcode attribute. Enter partial or full heading text, separated by commas.

### What heading levels are supported?

H2, H3, and H4. You can configure which levels to include via settings or the `headings`
shortcode attribute.

### Is the TOC accessible?

Yes. The TOC is wrapped in a `<nav>` element with an `aria-label` attribute for 
screen reader support.

### Does it work with the Gutenberg block editor?

Yes, it works with both the Classic Editor and the Gutenberg block editor.

### Does it support WordPress Multisite?

Yes. On plugin deletion, settings are removed from all sites in the network via `
uninstall.php`.

## Reviews

![](https://secure.gravatar.com/avatar/4048c4f50726e97a73e90dfa31e96affa3639fa3fda546963626dd980b9d2112?
s=60&d=retro&r=g)

### 󠀁[feature incomplete](https://wordpress.org/support/topic/feature-incomplete/)󠁿

 [hughc](https://profiles.wordpress.org/hughc/) August 14, 2026

The core functionality (auto generating of ToC content by scanning page content)
does work, but several of the shortcode attributes (spy, sticky ) cited in the plugin
description are flat-out missing from the implementation, based on a scan of the
one and only source code file.

 [ Read all 1 review ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/)

## Contributors & Developers

“Imran Table of Contents” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ imranacademy ](https://profiles.wordpress.org/imranacademy/)

[Translate “Imran Table of Contents” into your language.](https://translate.wordpress.org/projects/wp-plugins/imran-table-of-contents)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/imran-table-of-contents/),
check out the [SVN repository](https://plugins.svn.wordpress.org/imran-table-of-contents/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/imran-table-of-contents/)
by [RSS](https://plugins.trac.wordpress.org/log/imran-table-of-contents/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.0

 * Initial release.
 * Auto-insert TOC based on H2, H3, H4 headings.
 * Shortcode `[imran_toc]` with full parameter support.
 * Sticky TOC option.
 * ScrollSpy — highlights active heading while scrolling.
 * Smooth scroll to heading anchors.
 * Admin settings page under Settings  Imran TOC.
 * Exclude specific headings by text.
 * Max headings limit option.
 * Flexible insert position: top, bottom, after first paragraph, after first H2.
 * Ordered and unordered list support.
 * No jQuery — vanilla JavaScript only.
 * Multisite compatible with clean uninstall via uninstall.php.
 * Text domain: `imran-by-table-of-contents`.
 * Requires WordPress 5.8+, PHP 7.2+.

## Meta

 *  Version **1.0.0**
 *  Last updated **8 months ago**
 *  Active installations **Fewer than 10**
 *  WordPress Version ** 5.8 or higher **
 *  Tested up to **6.9.11**
 *  PHP Version ** 7.2 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/imran-table-of-contents/)
 * Tags
 * [table](https://en-au.wordpress.org/plugins/tags/table/)[table of contents](https://en-au.wordpress.org/plugins/tags/table-of-contents/)
   [toc](https://en-au.wordpress.org/plugins/tags/toc/)[wordpress table of contents](https://en-au.wordpress.org/plugins/tags/wordpress-table-of-contents/)
 *  [Advanced View](https://en-au.wordpress.org/plugins/imran-table-of-contents/advanced/)

## Ratings

 2 out of 5 stars.

 *  [  0 5-star reviews     ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/imran-table-of-contents/reviews/)

## Contributors

 *   [ imranacademy ](https://profiles.wordpress.org/imranacademy/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/imran-table-of-contents/)