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:
Shortcode Options:
You can use several options in [toc] shortcode:
Table of contents
.h2
.ul
for unordered list (default), or ol
for ordered list.6
.Advance usage example using all the options:
[toc title=”This page content:” title_tag=”strong” list=”ol” depth=”1″]
Notes for developer:
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.