<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:
WP Admin > Plugins > Add New
or download a .zip file and upload via FTP to /wp-content/plugins/
directoryWP Admin > Settings > tinyTOC
, if needed. Plugin automatically embeds TOC top of post content, but you can use a widget, a shortcode ([toc]
), a couple of template tags (the_toc()/get_toc()
) for other integration options.You need to activate the widget via plugin Settings page (WP Admin > Settings > tinyTOC
)
tinytoc_widget_content
filter (by Maciej Gryniuk / odie2 )PHP < 5.3.6
support (suggested by Maciej Gryniuk / odie2 )