WordPress.org

Plugin Directory

tinyTOC

Automaticly builds a Table of Contents using headings (h1-h6) in post/page/CPT content.

A tiny and simple to help with navigation in long texts by forming an automatic Wikipedia-like table of contents.

It works by scanning the text for headings (<h1>-<h6> HTML tags). If more than a certain amount of headings (3 by default) are found - a table of contents with bookmarks is formed and inserted to the post content. Location (above or below) the text can be chosen in settings page.

TOC is formed as HTML5 <nav> element with nested ordered list inside. No specific styling is provided, so that it fits organicaly into the text. If you need specific styling, include it to your theme's CSS.

You can also use a shortcode - [toc], template tags - get_toc()/the_toc() and a widget - tinyTOC Widget.

The plugin is translation ready and has Lithuanian translation.

Also try out my other plugins:

  • Gust - a Ghost-like admin panel for WordPress, featuring Markdown based split-view editor.
  • tinyCoffee - a PayPal donations button with a twist. Ask people to treat you to a coffee/beer/etc.
  • tinyRelated - a plugin to manually assign and display related posts.
  • tinyIP - Premium - stop WordPress users from sharing login information, force users to be logged in only from one device at a time.

An enormous amount of coffee was consumed while developing these plugins, so if you like what you get, please consider treating me to a cup. Or two. Or ten.

Cover image credit: Jeremy Keith

Requires: 3.0.0 or higher
Compatible up to: 4.3.0
Last Updated: 2014-12-7
Active Installs: 40+

Ratings

3.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1