WordPress Made Easy

How to Create a Table of Contents in WordPress Posts and Pages

Have you ever considered including a table of contents box on some of your lengthy pages, à la Wikipedia? Users can more quickly go to the section they wish to read thanks to a table of contents. We will demonstrate how to make a table of contents in WordPress posts and pages without writing any HTML or CSS in this article.

Table of contents can be added to WordPress posts or pages.

Why Should WordPress Posts Include a Table of Contents?

On websites like Wikipedia, the table of contents might be familiar to you. In lengthy articles, a table of contents makes it simpler for readers to go to the portion they wish to read.

Because Google automatically includes a jump to section link next to your site in search results, it also aids WordPress SEO.

Link jump in search results

By manually adding HTML code, you can make a table of contents in WordPress. The fact that you have to manually create a list, add links, and add ID attributes all along the essay makes that challenging for beginners.

But there is a simple method. Let’s examine how you may quickly generate a table of contents for your WordPress posts and pages.

Creating a Table of Contents in WordPress

Installing and activating the Easy Table of Contents plugin is the first step in creating a table of contents in WordPress. See our step-by-step tutorial on installing a WordPress plugin for more information.

You must go to the Settings » Table of Contents page after activation. From this point, you can control the table of contents’ general parameters, including container label and position selection.

Setting the table of contents

For each post type, you can additionally activate or disable the automatic insertion of the table of contents. In the event that the plugin is active, any article with more than four headings will automatically have a table of contents added. That can be changed to any other number you like.

Generally speaking, unless all of your articles are exceptionally lengthy, we do not advise adding a table of contents to every piece.

The table of contents box’s look can then be modified by scrolling down. From this point, you can choose a theme, modify the box’s width and height, choose the text size, or design a unique color scheme.

appearance of the contents page

You must then navigate to the Advanced options section. The default settings would be adequate for the majority of websites, but you can inspect them to see if there is anything you would like to change.

advanced options for the contents table

To save these options, don’t forget to click the Save Changes button.

Table of Contents Insertion for WordPress Posts and Pages

The plugin will now automatically begin adding a table of contents to posts based on the settings you selected earlier, unless you have deactivated the auto-insertion. Additionally, you can modify the settings for each individual article.

You’ll see a new section to manage and add to your post’s table of contents on the post edit screen.

settings for the posts' table of contents

You can turn off the auto-insert feature for the table of contents for just this post in this area. Additionally, you can specify the heading level to be applied to the table components.

Note: If you alter any options in this box, they will take precedence over the default choices for this particular post.

When you’ve finished writing the article with numerous headings, just run a preview to see how the Table of Contents looks.

box with the contents list

Just above your article’s initial heading will be the table of contents. Links allow readers to quickly navigate to the content they want to read.

We trust that this article has shown you how to add a table of contents to WordPress pages and posts.

Comments are closed.