AriTOC works on WordPress 6.3 or newer with PHP 7.4 or newer. In five steps you get a table of contents on your posts and pages.
Step 1: Install and activate
AriTOC is coming soon to WordPress.org. Once it is listed, go to Plugins→Add New in WordPress, search for AriTOC, click Install Now and then Activate.
If another table of contents plugin is active, AriTOC shows a warning on the Plugins screen, because your pages may show two tables. See Switch from another table of contents plugin.
Step 2: Open the settings
Go to Settings→AriTOC, or click Settings under AriTOC on the Plugins screen. The screen has five tabs: Where, Look, Behavior, Tools and Help. The Live preview beside them shows a sample table that updates as you change options.
Step 3: Choose where the table appears
On the Where tab:
- Under Insert automatically on, tick the post types that get a table. Posts and Pages are ticked when you first activate AriTOC.
- Under Position, choose where the table goes. The default is Before the first heading.
- Leave Minimum headings at 3 and Heading levels at H2, H3 and H4 for now.
- Click Save changes.
Step 4: Pick a look
On the Look tab, choose a Theme and a Numbering style and watch the live preview. Automatic (follows the visitor’s device) follows the light or dark setting of the visitor's device. Click Save changes.
Step 5: Check a post
Open a published post that has at least three headings at levels H2 to H4. The table appears before the first heading. Click an entry: the page scrolls to that heading, and while you read, the table highlights the section you are in.
No table?
The post has fewer headings than the minimum at the selected levels, its post type is not ticked under Insert automatically on, or the post is set to Hide on this page in the editor. A page builder that prints content without the standard
the_contentfilter also gets no automatic table: use the block or shortcode there.
Next steps
- Place the table with the block, shortcode or widget
- Choose which headings appear in the table
- Show, hide or change the table on one page
Still stuck?
Our helpdesk answers on working days, Norwegian time. Include your WordPress version, PHP version, AriTOC version and the page address.