Skip to content

Automatically create a table of contents from headings in your posts.

Notifications You must be signed in to change notification settings

maithemewp/mai-table-of-contents

Repository files navigation

Mai Table Of Contents

Add a table of contents to the beginning of your content auto created from your the heading structure in your content. Use a custom block, shortcode, or automatically display the table of contents to the beginning of your content. Auto display before posts, pages, and/or custom post types.

If the plugin is set to auto-display the table of contents, you can override the location per-post by also adding a block/shortcode manually to that post. The post will only show the manually added table of contents.

Block

Requires Advanced Custom Fields Pro.

Mai Table of Contents Block Mai Table of Contents Block Edit

Shortcode

Default usage:
[mai_toc]

Default parameters:
[mai_toc open="true" headings="2"]

Settings

Mai Table of Contents Block Settings