WP Manifestindependent plugin directory
manifest / content / wordpress-article-toc

Article TOC

Generate a table of contents from h2 headings in WordPress posts

★ 2stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/zahra-norouzi/wordpress-article-toc/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

پلاگین وردپرس برای نمایش فهرست محتوا براساس عناوین h2 مقالات

نمایش فهرست محتوا

توضیحات

این پلاگین به شما امکان می‌دهد با استفاده از شورت‌کد [article_toc]، فهرست محتوا (Table of Contents) را به صورت خودکار و براساس عناوین h2 هر مقاله نمایش دهید. هر عنوان به بخش مربوط لینک می‌شود و ظاهر فهرست قابل سفارشی‌سازی است.

ویژگی‌ها

  • استخراج خودکار عناوین h2 هر مقاله
  • نمایش فهرست محتوا با استایل دلخواه
  • لینک‌دهی به هر بخش مقاله
  • قابل استفاده با شورت‌کد

نحوه استفاده

  1. پلاگین را در مسیر wp-content/plugins آپلود و فعال کنید.
  2. شورت‌کد زیر را در محتوای مقاله قرار دهید:
    [article_toc]

سفارشی‌سازی استایل

فایل CSS پلاگین در مسیر assets/css/article-toc.css قرار دارد و قابل ویرایش است.


Article TOC (English)

WordPress plugin for displaying a table of contents based on h2 headings in articles.

Features

  • Automatically extracts h2 headings from posts
  • Displays a customizable table of contents
  • Each item links to its section in the article
  • Easy to use via shortcode

Usage

  1. Upload and activate the plugin in wp-content/plugins.
  2. Add the shortcode to your post content:
    [article_toc]

Custom CSS

Edit the plugin’s CSS file at assets/css/article-toc.css for styling.


Author: Zahra Norouzi Version: 1.0