{"id":289414,"date":"2026-03-27T03:33:15","date_gmt":"2026-03-27T03:33:15","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/imran-by-table-of-contents\/"},"modified":"2026-03-27T03:44:42","modified_gmt":"2026-03-27T03:44:42","slug":"imran-table-of-contents","status":"publish","type":"plugin","link":"https:\/\/de.wordpress.org\/plugins\/imran-table-of-contents\/","author":23406679,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"6.9.4","requires":"5.8","requires_php":"7.2","requires_plugins":null,"header_name":"Imran Table of Contents","header_author":"","header_description":"Lightweight and smart Table of Contents plugin with heading control, mobile support, analytics, and smooth scroll.","assets_banners_color":"d7eed9","last_updated":"2026-03-27 03:44:42","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":0,"downloads":231,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"imranacademy","date":"2026-03-27 03:44:42"}},"upgrade_notice":{"1.0.0":"<p>Initial release. No upgrade needed.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3492281,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3492281,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3492281,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3492281,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":{"1":"TOC displayed at the top of a post with scrollspy highlighting the active section.","2":"Admin Settings page under Settings \u2192 Imran TOC.","3":"Shortcode placed inside the Gutenberg block editor."}},"plugin_section":[],"plugin_tags":[258748,2289,10851,10852,236544],"plugin_category":[43],"plugin_contributors":[256776],"plugin_business_model":[],"class_list":["post-289414","plugin","type-plugin","status-publish","hentry","plugin_tags-auto-table-of-contents","plugin_tags-table","plugin_tags-table-of-contents","plugin_tags-toc","plugin_tags-wordpress-table-of-contents","plugin_category-customization","plugin_contributors-imranacademy","plugin_committers-imranacademy"],"banners":{"banner":"https:\/\/ps.w.org\/imran-table-of-contents\/assets\/banner-772x250.png?rev=3492281","banner_2x":"https:\/\/ps.w.org\/imran-table-of-contents\/assets\/banner-1544x500.png?rev=3492281","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/imran-table-of-contents\/assets\/icon-128x128.png?rev=3492281","icon_2x":"https:\/\/ps.w.org\/imran-table-of-contents\/assets\/icon-256x256.png?rev=3492281","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Imran Table of Contents is a lightweight, fast, and highly customizable TOC plugin for WordPress.<\/p>\n\n<p>It automatically generates a clean and user-friendly table of contents based on your headings and helps improve user experience, navigation, and SEO.<\/p>\n\n<p>\ud83d\ude80 Key Features:<\/p>\n\n<ul>\n<li>Automatic TOC generation<\/li>\n<li>Manual shortcode support [imran_toc]<\/li>\n<li>Works with Elementor and Gutenberg<\/li>\n<li>Heading control (H1\u2013H6 selection)<\/li>\n<li>Sticky sidebar TOC<\/li>\n<li>Mobile floating TOC<\/li>\n<li>Collapse \/ expand option<\/li>\n<li>Smooth scrolling and scrollspy<\/li>\n<li>Search inside TOC<\/li>\n<li>Click analytics tracking<\/li>\n<li>Dark mode support<\/li>\n<li>Insert position control<\/li>\n<\/ul>\n\n<p>\u26a1 Performance Focused:\nThis plugin is lightweight and does not rely on heavy external libraries.<\/p>\n\n<p>\ud83c\udfaf Perfect for:<\/p>\n\n<ul>\n<li>Bloggers<\/li>\n<li>SEO experts<\/li>\n<li>Affiliate marketers<\/li>\n<li>Content-heavy websites<\/li>\n<\/ul>\n\n<p>\ud83d\udccc Usage:\nSimply install and activate. The TOC will appear automatically, or use the shortcode anywhere:\n[imran_toc]<\/p>\n\n<p>This plugin is designed to give you full control over your content structure while keeping everything simple and fast.<\/p>\n\n<p>All options:\n    [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\"]<\/p>\n\n<h4>Shortcode Parameters<\/h4>\n\n<ul>\n<li><strong>title<\/strong> \u2014 TOC box heading text. Default: <code>\"Table of Contents\"<\/code><\/li>\n<li><strong>headings<\/strong> \u2014 Comma-separated heading tags to include. Default: <code>\"h2,h3,h4\"<\/code><\/li>\n<li><strong>list<\/strong> \u2014 List style: <code>ul<\/code> (unordered) or <code>ol<\/code> (ordered). Default: <code>\"ul\"<\/code><\/li>\n<li><strong>position<\/strong> \u2014 Where to place the TOC: <code>top<\/code>, <code>bottom<\/code>, <code>after_first_paragraph<\/code>, <code>after_first_h2<\/code>. Default: <code>\"top\"<\/code><\/li>\n<li><strong>max<\/strong> \u2014 Maximum headings to show. <code>0<\/code> means unlimited. Default: <code>0<\/code><\/li>\n<li><strong>exclude_text<\/strong> \u2014 Comma-separated heading texts to skip. Default: empty<\/li>\n<li><strong>smooth<\/strong> \u2014 Smooth scroll on click: <code>true<\/code> or <code>false<\/code>. Default: <code>\"true\"<\/code><\/li>\n<li><strong>spy<\/strong> \u2014 Highlight active section while scrolling: <code>true<\/code> or <code>false<\/code>. Default: <code>\"true\"<\/code><\/li>\n<li><strong>sticky<\/strong> \u2014 Stick TOC while scrolling: <code>true<\/code> or <code>false<\/code>. Default: <code>\"false\"<\/code><\/li>\n<\/ul>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under GPLv2 or later.\nSee: https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>Imran Table of Contents<\/code> folder to <code>\/wp-content\/plugins\/<\/code>.<\/li>\n<li>Activate the plugin through the <strong>Plugins<\/strong> menu in WordPress.<\/li>\n<li>Go to <strong>Settings \u2192 Imran TOC<\/strong> to configure defaults.<\/li>\n<li>Optionally place <code>[imran_toc]<\/code> in any post or page to override auto-insert position.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20this%20plugin%20slow%20down%20my%20site%3F\"><h3>Does this plugin slow down my site?<\/h3><\/dt>\n<dd><p>No. It uses vanilla JavaScript (no jQuery) and injects minimal inline CSS\/JS only on pages where the TOC is displayed.<\/p><\/dd>\n<dt id=\"can%20i%20use%20the%20shortcode%20and%20auto-insert%20at%20the%20same%20time%3F\"><h3>Can I use the shortcode and auto-insert at the same time?<\/h3><\/dt>\n<dd><p>No \u2014 if <code>[imran_toc]<\/code> is found in the post content, auto-insert is automatically disabled for that post to prevent duplicates.<\/p><\/dd>\n<dt id=\"how%20do%20i%20exclude%20a%20heading%20from%20the%20toc%3F\"><h3>How do I exclude a heading from the TOC?<\/h3><\/dt>\n<dd><p>Use the <strong>Exclude by Text<\/strong> field in <strong>Settings \u2192 Imran TOC<\/strong>, or use the <code>exclude_text<\/code> shortcode attribute. Enter partial or full heading text, separated by commas.<\/p><\/dd>\n<dt id=\"what%20heading%20levels%20are%20supported%3F\"><h3>What heading levels are supported?<\/h3><\/dt>\n<dd><p>H2, H3, and H4. You can configure which levels to include via settings or the <code>headings<\/code> shortcode attribute.<\/p><\/dd>\n<dt id=\"is%20the%20toc%20accessible%3F\"><h3>Is the TOC accessible?<\/h3><\/dt>\n<dd><p>Yes. The TOC is wrapped in a <code>&lt;nav&gt;<\/code> element with an <code>aria-label<\/code> attribute for screen reader support.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20the%20gutenberg%20block%20editor%3F\"><h3>Does it work with the Gutenberg block editor?<\/h3><\/dt>\n<dd><p>Yes, it works with both the Classic Editor and the Gutenberg block editor.<\/p><\/dd>\n<dt id=\"does%20it%20support%20wordpress%20multisite%3F\"><h3>Does it support WordPress Multisite?<\/h3><\/dt>\n<dd><p>Yes. On plugin deletion, settings are removed from all sites in the network via <code>uninstall.php<\/code>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release.<\/li>\n<li>Auto-insert TOC based on H2, H3, H4 headings.<\/li>\n<li>Shortcode <code>[imran_toc]<\/code> with full parameter support.<\/li>\n<li>Sticky TOC option.<\/li>\n<li>ScrollSpy \u2014 highlights active heading while scrolling.<\/li>\n<li>Smooth scroll to heading anchors.<\/li>\n<li>Admin settings page under Settings \u2192 Imran TOC.<\/li>\n<li>Exclude specific headings by text.<\/li>\n<li>Max headings limit option.<\/li>\n<li>Flexible insert position: top, bottom, after first paragraph, after first H2.<\/li>\n<li>Ordered and unordered list support.<\/li>\n<li>No jQuery \u2014 vanilla JavaScript only.<\/li>\n<li>Multisite compatible with clean uninstall via uninstall.php.<\/li>\n<li>Text domain: <code>imran-by-table-of-contents<\/code>.<\/li>\n<li>Requires WordPress 5.8+, PHP 7.2+.<\/li>\n<\/ul>","raw_excerpt":"A beautiful, lightweight Table of Contents plugin with sticky option, smooth scroll, and scroll spy \u2014 no jQuery needed.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/289414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=289414"}],"author":[{"embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/imranacademy"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=289414"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=289414"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=289414"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=289414"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=289414"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/de.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=289414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}