Linux 软件免费装
Banner图

f(x) TOC

开发者 turtlepod
更新时间 2016年12月9日 15:18
捐献地址: 去捐款
PHP版本: 4.0 及以上
WordPress版本: 4.7
版权: GPLv2 or later
版权网址: 版权信息

标签

shortcode wikipedia heading table of contents toc toc shortcode

下载

1.0.0 1.1.0

详情介绍:

f(x) TOC Simple Table Of Contents Plugin. Just add [toc] shortcode in content to display. This plugin will parse and grab all heading (h1 -h6) in your content and display it as structured table of contents (just like WikiPedia.org table of contents). Features:
  1. Super simple and easy to use.
  2. Auto create Table of contents by listing all your headings in your content.
  3. The GPL v2.0 or later license. :) Use it to make something cool.
  4. Support available at Genbu Media.
Shortcode Options: You can use several options in [toc] shortcode:
  1. title: to change the title of table of contents, as default is Table of contents.
  2. title_tag: element wrapper for the title, the default is h2.
  3. list: you can use ul for unordered list (default), or ol for ordered list.
  4. depth: list depth (numeric). the default is 6.
Advance usage example using all the options: [toc title="This page content:" title_tag="strong" list="ol" depth="1"]

安装:

  1. Navigate to "Plugins > Add New" Page from your Admin.
  2. To install directly from WordPress.org repository, search the plugin name in the search box and click "Install Now" button to install the plugin.
  3. To install from plugin .zip file, click "Upload Plugin" button in "Plugins > Add New" Screen. Browse the plugin .zip file, and click "Install Now" button.
  4. Activate the plugin.

升级注意事项:

1.1.0 TOC now works for full content in archive too. 1.0.0 initial relase.

其他记录:

Notes for developer: GitHub Development of this plugin is hosted at GitHub. Pull request and bug reports are welcome. 钩子 List of hooks available in this plugin: filter: fx_toc_default_args (array) The default option for the shortcode. filter: fx_toc_output (string) HTML output of the shortcode.

常见问题:

Can I add this in widget ?

No, you can only add this shortcode in content.

Can I dislay it in archive pages?

Yes, if your theme display full content, table of contents will be displayed.

How to style this ?

The Table of contents output is wrapped in fx-toc class. You can style it using CSS.

更新日志:

1.1.0 - 04 May 2016 1.0.0 - 11 Jan 2016