How to create a table of contents in WordPress using Kadence plugin
How to a add or create a take of contents in WordPress using Kadence plugin.
From WordPress dashboard click on Plugins

Click on Add New

Type on the Keyword search tab “Gutenberg blocks by Kadence blocks – page builder features“

Install and activate Gutenberg blocks by Kadence blocks – page builder features

While writing a blog post Click on the Plus Icon on the right side of Type / to choose a block

Click on Browse All

Choose Table of Contents

Play with the Table of contents – block features on the right side. You can put it inside the blog post or you can put it in the sidebar, etc. Just play around with it.

Alternative, you can also add a plug in that does it automatically for you. Just type Table of contents while searching for plugins.
Example

That’s it
Take a calculated risk.
Now, start and adjust as you go.