Adding Table of Contents Using a Plugin
Obviously, using a plugin to add a table of contents is the easiest and fastest way. And there are plenty of plugins you can find to help you add a table of contents to your posts and pages. Our favorite table of contents plugin is the Easy Table of Contents WordPress plugin, which is, indeed, very easy to use. With this plugin, there’s not much to beat around the bush – it basically extracts all the headings from your posts or pages and creates a table of contents. If you are keen to see how it looks like, then you can see it on this post, or any other posts on AllinAllSpace. However, if this plugin is harming your site performance or does not work well for any other reason, you can also use another table of contents WordPress plugin. From my knowledge, some of the best WordPress table of contents plugins include the Ultimate Blocks, Top Table of Contents, and the Affiliate Booster plugin (also the ability to use table of contents via this plugin requires a premium account).Manually Adding Table of Contents in WordPress Gutenberg
Gutenberg, which was released in 2028, is the newewst editor for WordPress, and is very likely to be the most used editing version among WP users. Manually adding a table of contents on Gutenberg is fairly easy. Here’s how it can be done:- First, you need to add a heading. For demonstration, we used this as H2 heading – Manually Adding Table of Contents in WordPress Gutenberg.
- Now that you have several heading along the article, you can manually create a table of contents.
- Next, highlight the H2 heading, and click on the Edit HTML button.
Manually Adding Table of Contents in WordPress Classic Editor
If you are using WordPress classic editor, then here’s how to manually add a table of contents to a WordPress post or page:- First, you need to add H2/H3/H4 title in the body of the post. For demonstration, below we created this H2 title – Add Table of Contents in WordPress Posts or Pages.
That’s it. We hope this article helped you understand how to add a table of contents to WordPress posts and pages. We also recommend reading our full Kinsta review and our article about the best tools and plugins for web development.