All 33 Table of Contents answers

See every answer

Answer

Two headings have the same name and the links go to the wrong one

Updated Table of Contents 1.8.1Tested with WordPress 7.1

They should not — identical headings get -2, -3 and so on, so every anchor is unique.

If the wrong section is reached, something else on the page is almost certainly using the same id. The ones WordPress, WooCommerce and most themes use — #comments, #email, #reviews, #content and the like — are already avoided, which is why a heading called "Email" gets #email-2. For anything else, set an anchor prefix under Settings and every generated id gets it, which puts them out of the way of your theme's.

Still stuck? Ask the developers who wrote it. We aim to reply within one business day.

Table of Contents

Give a long post a contents list built from its own headings, and a permanent link to every section.

From $19 a year · every feature · 30-day refund

Buy Table of ContentsSee the plugin

A journal post about washing a hoodie. After the opening paragraph, a contents list in the Ladder design is headed Contents, 18 sections, 3 min read, with a Hide control and a thin progress bar. It lists five numbered sections, Before you wash it, Washing, Drying, Storing it between seasons and When something goes wrong, each with its own numbered sub-sections joined by a line of dots.