This shortcode is used to display Table of contents. This will display TOC only if the current post has enough headings to generate TOC. If not, it will display nothing.
Shortcode has several attributes:
- class: additional CSS class name to add
- title: display the ‘Table of Contents’ title. The default is ‘true’.