f(x) TOC
Simple Table Of Contents Plugin. Just add [toc] shortcode in content to display.
Plugin info
Maintenance & Compatibility
Maintenance score
Possibly abandoned • Last updated 3439 days ago • 5 reviews
Is f(x) TOC abandoned?
Possibly abandoned (last update 3439 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
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:
- Super simple and easy to use.
- Auto create Table of contents by listing all your headings in your content.
- The GPL v2.0 or later license. 🙂 Use it to make something cool.
- Support available at Genbu Media.
Shortcode Options:
You can use several options in [toc] shortcode:
- title: to change the title of table of contents, as default is
Table of contents. - title_tag: element wrapper for the title, the default is
h2. - list: you can use
ulfor unordered list (default), orolfor ordered list. - 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″]
Notes for developer:
Github
Development of this plugin is hosted at GitHub. Pull request and bug reports are welcome.
Hooks
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.
Installation
- Navigate to “Plugins > Add New” Page from your Admin.
- To install directly from WordPress.org repository, search the plugin name in the search box and click “Install Now” button to install the plugin.
- 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.
- Activate the plugin.
Frequently Asked Questions
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.
Review feed
Screenshots
Changelog
1.1.0 – 04 May 2016
- Display TOC on archive pages too.
- Strip tags for each list item to avoid problem in the future.
- Add plugin action link for support.
- new filter “fx_toc_output”.
1.0.0 – 11 Jan 2016
- Init