GridVids
Sign in with YouTube

How To Create a Table of Contents in WordPress Posts Automatically

Mark watched
Don't Miss
Hide
Open in popup Open on YouTube

WPCrafter.com WordPress For Non-Techies 6 years ago
Chapters

Add a table of contents to your WordPress posts that builds itself from your headings. Three ways with the Kadence Blocks table of contents block: in one post, on every post, and in a sticky sidebar.

Big blogs like Backlinko, HubSpot and Rank Math use a table of contents for a reason: readers can skim a long post and jump straight to the part they want, so they stay on the page longer.

If you build with Elementor Pro, it has a Table of Contents widget, and I show it briefly first.

For everyone else, install the Kadence Blocks plugin and add the Table of Contents block to a post. It picks up your headings automatically and updates when you change them. I go through the columns, bullets or numbers, the title, link styles and container padding to match the look of an existing blog.

Then the dynamic part. With a theme that has hooks or elements (I use the Hooked Elements feature in Kadence Pro), you can insert the table of contents into every blog post at once, or only into posts in certain categories, for certain users or devices.

I also put it in the sidebar and make the sidebar sticky as you scroll, and show the shortcode for placing it by hand, so one design updates everywhere you use it.

After you add it, check your analytics to see whether time on page goes up and bounce rate goes down.

MY PRODUCTS SureCart (ecommerce for WordPress) https://www.wpcrafter.com/surecart SureMembers (memberships) https://www.wpcrafter.com/suremembers SureDash (communities and courses) https://suredash.com/ OttoKit (automation) https://www.wpcrafter.com/suretriggers Presto Player (video) https://www.wpcrafter.com/prestoplayer ZipWP (AI website builder) https://www.wpcrafter.com/zip

RECOMMENDED HOSTING ZipWP Managed Hosting https://zipwp.com/managed-hosting/ Hostinger https://www.wpcrafter.com/hostinger Cloudways https://www.wpcrafter.com/cloudways

CHAPTERS

Will you add a table of contents to every post, or just your longest ones? Subscribe for more WordPress tutorials. All of the opinions expressed in this video are my own, I was not paid to make this video. Whenever there is a link in any of my videos, if there is a referral program available, please assume that you are clicking on a referral link.