Title: LH Table of Contents
Author: shawfactor
Published: <strong>نومبر 23, 2017</strong>
Last modified: اکتوبر 4, 2019

---

Search plugins

![](https://ps.w.org/lh-table-of-contents/assets/banner-772x250.jpg?rev=1773711)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

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

# LH Table of Contents

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

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

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

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

## Description

This plugin makes it easy to create a wiki like TOC (table of contents) in your 
posts or pages using shortcode, no linking or creating anchor is needed.

Unlike other plugins this is 100% semantic, ie drop the comment string: `<!-- lh_toc--
>`.

Into your content body and the plugin will do the rest ie it will generate a table
of contents based on the h2 and h3 tags in the content body.

If the comment is not included the table of contents is not generated.

#### Features:

## Installation

 1. Upload the entire `lh-table-of-contents` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Include the string:  in the content body where you want the table of contents
 4. Done!

## FAQ

  How to style the TOC

I left the styling up to you but the tabel of contents itself has a class of ‘lh_table_of_contents’,
the anchors for h2 tags have a class of ‘lh_toc-h2’, and the anchors for h3 have
a class of ‘lh_toc-h3’.

## Reviews

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

### 󠀁[How to Display TOC?](https://wordpress.org/support/topic/how-to-display-toc/)󠁿

 [Tahir Taous](https://profiles.wordpress.org/tahirtaous/) ستمبر 24, 2019

What do you mean by ie drop the comment string: I have installed and activaed this
plugin but can't figure out how to use this. I am just trying all of your plugins
and you don't explain it clearly how to use your plugins. I am a big fan of LH Zero
Spam and have been using it for more than 3 years.

 [ Read all 0 reviews ](https://wordpress.org/support/plugin/lh-table-of-contents/reviews/)

## Contributors & Developers

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

Contributors

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

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

### Interested in development?

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

## Changelog

**1.00 November 20, 2017**
 Initial release.

**1.05 November 25, 2017**
 Better approach to adding Toc.

## Meta

 *  Version **1.05**
 *  Last updated **7 years ago**
 *  Active installations **50+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **5.2.29**
 *  Language
 * [English (US)](https://wordpress.org/plugins/lh-table-of-contents/)
 * Tags
 * [semantic](https://bcc.wordpress.org/plugins/tags/semantic/)[table of contents](https://bcc.wordpress.org/plugins/tags/table-of-contents/)
   [toc](https://bcc.wordpress.org/plugins/tags/toc/)[wiki like toc](https://bcc.wordpress.org/plugins/tags/wiki-like-toc/)
 *  [Advanced View](https://bcc.wordpress.org/plugins/lh-table-of-contents/advanced/)

## Ratings

 5 out of 5 stars.

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

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

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

## Contributors

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

## Support

Got something to say? Need help?

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

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://lhero.org/portfolio/lh-table-of-contents/)