
FYP Table of Contents
by François Yerg on WordPress.org
Easily add an automatic, customizable table of contents to your posts and pages to improve navigation and user experience.

Basic Table of Contents - Simple, clean table of contents generated automatically from page headings
FYP Table of Contents automatically generates a structured, customizable table of contents for your WordPress posts and pages. This helps readers quickly navigate long articles by providing clickable links to each section, improving both user experience and SEO.
Ideal for blogs, documentation, tutorials, and any content-rich site, FYP Table of Contents is lightweight, easy to use, and compatible with any theme. You can control where the table appears, customize its appearance, and exclude specific headings as needed.
Whether you want to enhance readability, boost engagement, or make your content more accessible, FYP Table of Contents offers a flexible and practical solution.
Key Features:
- 🚀 Automatic Generation: Instantly creates a structured table of contents from your content headings
- 🎨 Fully Customizable: Control appearance, styling, and which headings to include/exclude
- 📱 Responsive Design: Works perfectly on desktop, tablet, and mobile devices
- ⚡ Performance Optimized: Lightweight code with minimal impact on page load times
- 🔧 Easy Integration: Simple shortcode implementation – no coding required
- 🎪 Toggle Functionality: Optional collapse/expand feature for better UX
- 🌈 Theme Compatible: Works seamlessly with any WordPress theme
- 📊 Smart Detection: Only displays when minimum heading requirements are met
Usage
To display the table of contents on your website, simply add the [fyplugins_table_of_contents]
shortcode to any page or post where you want it to appear.
Shortcode Parameters
The [fyplugins_table_of_contents]
shortcode supports the following parameters to customize its behavior:
min_headings
(integer): Minimum number of headings required to display the table of contents. Default:3
.included
(string): Comma-separated list of heading levels to include (e.g.,h2,h3,h4
). Default:h2,h3
.excluded
(string): Comma-separated list of headings or CSS selectors to exclude from the table of contents (e.g.,.hidden_title,h4
). Default: empty.title
(string): Custom title for the table of contents. Default:Table of Contents
.class
(string): Additional CSS classes for custom styling. Default: empty.toggle
(boolean): Show or hide a toggle button to collapse/expand the table of contents. Acceptstrue
orfalse
. Default:false
.default_toggle
(string): Set the initial toggle state of the table of contents. Acceptsshow
orhide
. Default:show
.
Basic Usage:
[fyplugins_table_of_contents]
Advanced Usage Example:
[fyplugins_table_of_contents min_headings="2" included="h2,h3,h4" excluded=".no-toc" title="Content Navigation" class="custom-toc" toggle="true" default_toggle="show"]
Support
If you need help with the plugin, please:
- Check the FAQ section above for common questions
- Visit the plugin support forum