Here’s a step-by-step process to add a table of contents in WordPress without a plugin:  1: First complete your content 2: Add HTML anchor to the headings 3: Create the Table of Contents 4: Add links to the Table of Contents