Add a table of contents to long posts with AI
Give a long post anchor links and a jump-to table of contents, no plugin required.
Prerequisites
A connected site and a post written in the WordPress editor. Best on posts and classic themes that render the post body normally, not page-builder layouts.
Add a table of contents to the top of this post: [paste the post URL or title]. Give every H2 (and H3, if the sections are nested) a clean anchor, then build a linked table of contents at the top that jumps to each heading. Use plain HTML anchor links, no plugin and no JavaScript. Before you save, show me the list of sections you found and the table of contents you plan to add, so I can confirm nothing is missing. If this post is already published, remember the change goes live when you save it, so wait for my okay first. After saving, give me the links so I can click through each one and check it lands on the right heading.
Already connected to WPVibe?
Skip the copy-paste. Just ask your AI for the “Add a table of contents to long posts with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.
A long guide or tutorial reads better when a reader can jump straight to the part they came for. But building a table of contents by hand means adding an anchor to every heading and a matching link at the top, then keeping them in sync every time you edit. Most people reach for a plugin, and then hit the ones that quietly break on certain themes or add script bloat you did not want.
WPVibe reads your post, gives every heading a clean anchor, and builds a linked table of contents at the top that jumps to each section. It is plain HTML anchor links, the kind browsers scroll to on their own, so there is no plugin to install and no JavaScript to load. It works on posts written in the WordPress editor and on classic themes that render the post body normally.
Paste the prompt and point it at the post you want. Have WPVibe show you the sections it found and the table of contents it will add before it saves, so you can confirm nothing was missed. If the post is already published the edit updates the live version on save, so review it first; if it is still a draft you can preview it in the editor before publishing.
Outcome
A linked table of contents sits at the top of the post and each link jumps to its heading, with no plugin installed.