這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

LH Table of Contents

描述

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:

安裝

  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!

常見問題

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’.

評價

2019年9月24日
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.
閱讀全部0個評價

貢獻者及開發者

“LH Table of Contents” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 LH Table of Contents 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.00 November 20, 2017
Initial release.

1.05 November 25, 2017
Better approach to adding Toc.