WordPress Table of Contents Plugin (CMTOC) - Getting Started - Basic Functionality


Adding Tables of Contents to Pages / Posts

Back to User Guides

The main function of the WordPress Table of Contents plugin is to comb through pages and posts, particularly long ones. Tables of contents are automatically generated based on their header contents. The generated Table of contents will get it's hierarchy from the type of header h1 < h2 < h3 etc.

Example of the page with headers - Floating Table of Contents WordPress
Example of the page with headers

Start by going to the plugin settings. Navigate to Admin Dashboard â†’ CM Table of Contents Pro â†’ Settings â†’ General Settings tab. There we need two options:

  • Display table-of-contents on given post types - Choose post types where you want to display TOC.
  • Display TOC on all chosen post types - Enable this option if you want to automatically display TOC on the chosen post types.
Choosing post types where to display TOC - WordPress TOC Plugin
Choosing post types where to display TOC

If the option Display TOC on all chosen post types is disabled, then you need to enable TOC manually for specific posts.

It can be done while editing page/post. Scroll down and find the CM Table of Contents - Custom Selectors section.

Check the box Enable Table Of Contents on this post / page (overwrite the general settings)

Enabling TOC on the page - TOC Table of Contents WordPress Plugin
Enabling TOC on the page

Scroll up a little to reveal the Update button and click it to save your changes.

Updating the page - WordPress Table of Contents
Updating the page

Once the Page has refreshed view the front-end to see the newly displayed Table of Contents.

Building multilevel TOC based on headers - Table of Contents WordPress
Building multilevel TOC based on headers

Notice how the h3 tags are indented further to the right and are a slightly smaller size.


Internal linking

The Table of Contents also links to the different sections in the content. Making it easier for readers to skip right to what they need on your page.

Example of the generated TOC - WordPress Table of Contents Block
Example of the generated TOC

More information about the WordPress Table of Contents Plugin

Other WordPress products can be found at CreativeMinds WordPress Store

Let us know how we can Improve this Product Documentation Page

To open a Support Ticket visit our support center
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.