It’s easy to add a Table of Contents (ToC) to Knowledge Base pages. The Heroic Knowledge Base comes packed with a Knowledge Base Table of Contents widget.
The ToC detects the heading tags in an article such as H2 and automatically generates an index of links to the various section heading tags. This is then displayed in a widget at the side of the article.
To add a Table of Contents widget, simply goto Appearance > Widgets from your WordPress dashboard and drag the Knowledge Base Table of Contents widget to the sidebar area you want the widget to appear in.