Opis
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:h1,h2,h3,h4,h5,h6.title(string): Custom title for the table of contents. Default:Table of Contents.template(string): Visual template to use. Available options:default,modern,horizontal. Default:default.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. Acceptstrueorfalse. Default:true.default_toggle(string): Set the initial toggle state of the table of contents. Acceptsshoworhide. Default:show.
Basic Usage:
[fyplugins_table_of_contents]
Advanced Usage Examples:
[fyplugins_table_of_contents min_headings="2" included="h2,h3,h4" title="Content Navigation" template="modern" class="custom-toc" toggle="true" default_toggle="show"]
`
[fyplugins_table_of_contents template=”horizontal” title=”Quick Navigation” included=”h2,h3”]
`
Support
If you need help with the plugin, please:
- Check the FAQ section above for common questions
- Visit the plugin support forum
Slike ekrana
Instalacija
Automatic Installation
- Log in to your WordPress admin panel
- Go to Plugins Add New
- Search for “FYP Table of Contents”
- Click “Install Now” and then “Activate”
- Add the shortcode
[fyplugins_table_of_contents]to any post or page
Manual Installation
- Download the plugin files from WordPress.org
- Upload the plugin files to the
/wp-content/plugins/fyp-table-of-contentsdirectory via FTP - Activate the plugin through the ‘Plugins’ screen in WordPress
- Add the shortcode
[fyplugins_table_of_contents]to your content
Getting Started
Once activated, simply add the shortcode [fyplugins_table_of_contents] anywhere in your post or page content where you want the table of contents to appear. The plugin will automatically scan your content for headings and generate the table of contents.
ČPP
-
Does this plugin work with any theme?
-
Yes, FYP Table of Contents is designed to work with all WordPress themes. If you notice any display issues, you can adjust your theme's CSS or customize the table of contents output using the plugin's shortcode parameters.
-
Can I customize how the table of contents is displayed?
-
Absolutely! You can personalize the table of contents using shortcode parameters such as
title,class,included,template, andtoggle. This allows you to match the table of contents to your site's style and needs. The plugin also includes three built-in templates: default, modern, and horizontal. -
Can I choose which headings appear in the table of contents?
-
Yes, you can specify which heading levels (H1–H6) to include using the
includedshortcode parameter. By default, all heading levels (H1-H6) are included. -
Will this plugin affect my site's performance?
-
FYP Table of Contents is lightweight and optimized for performance. It only generates and displays the table of contents when needed, so it has minimal impact on your site's speed.
-
Can I use multiple table of contents on the same page?
-
Yes, you can add multiple instances of the shortcode on the same page with different parameters to create customized table of contents for different sections.
-
Can I style the table of contents to match my theme?
-
Yes, you can use the
classparameter to add custom CSS classes and style the table of contents to perfectly match your theme's design. -
What happens if my content doesn't have enough headings?
-
The plugin only displays the table of contents when the minimum number of headings (default: 3) is met. You can adjust this using the
min_headingsparameter. -
Is the plugin translation ready?
-
The plugin is built with internationalization in mind and can be translated into other languages.
Recenzije
Nema recenzija za ovaj dodatak.
Saradnici i programeri
“FYP Table of Contents” is open source software. The following people have contributed to this plugin.
DoprinositeljiPrevedi “FYP Table of Contents” na vaš jezik.
Zainteresirani za razvoj?
Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.
Zapis promijena
1.1.1
- Updated: Core to version 1.3.4
1.1.0
- Fixed: Inconsistent option keys in Admin.php (included vs included_headings)
- Fixed: Missing shortcode attributes (title, class, toggle, default_toggle, excluded)
- Fixed: is_processed flag was never set to true, causing potential multiple processing
- Added: Caching system with WordPress transients (12-hour cache)
- Added: Hierarchical list structure (nested ul/li) instead of flat divs
- Added: Toggle functionality for collapsible table of contents
- Added: Excluded headings filtering by CSS selector or text pattern
- Added: JavaScript file for smooth scrolling and toggle interaction
- Improved: ID generation using sanitize_title() for cleaner, SEO-friendly anchors
- Improved: Proper enqueuing of CSS and JavaScript assets
1.0.1
- Added: Caching system to improve performance.
- Added: Shortcode detection to prevent processing when not needed.
1.0.0
- Initial release
- Automatic table of contents generation from heading tags
- Customizable shortcode with multiple parameters
- Responsive design for all devices
- Theme compatibility across all WordPress themes
- Toggle functionality for collapsible table of contents
- Smart heading detection and filtering


