وەسف
Protos TOC Generator automatically creates a Table of Contents for your posts and pages by scanning for heading tags (<h1> to <h6>). It adds anchor links for smooth navigation within long articles.
Features:
– Automatically injects a TOC before the first heading
– Smooth scrolling to heading sections
– Supports heading levels h1 to h6
– SEO-friendly anchor links
– Easy styling and customization
– Lightweight and no settings page
License
This plugin is licensed under the GPLv2 or later.
سکرین شۆتەکان
دامەزراندن
- Upload the plugin folder to the
/wp-content/plugins/directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Visit any post with headings — the TOC appears before the first heading.
پهد
-
Can I disable TOC for specific posts?
-
Not in this version. Let us know if you need this feature!
-
Can I customize where the TOC appears?
-
By default, it appears before the first heading. A shortcode version is coming soon.
-
Will this work with any theme?
-
Yes, it works with all standard themes and heading structures.
پێداچوونەوەکان
هیچ پێداچوونەوەیەک نەنووسراوە بۆ ئەم پێوەکراوە.
بەشداربووان و گەشەپێدەران
“Protos TOC Generator” نەرمەواڵەیەکی سەرچاوە کراوەیە. ئەم کەسانەی خوارەوە بەشدارییان تێدا کردووە.
بەشداربووان“Protos TOC Generator” وەربگێڕە بۆ زمانەکەی خۆت.
دەتەوێت بەشداربیت لە گەشەپێدان؟
گەڕان لە کۆدەکەدا بکە، سەیری تەمارگەی (SVN) بکە، یان بەشداربە لە ڕووداوتۆماری گەشەپێدان لە ڕێگەی (RSS).
ڕووداوتۆمارگەریی گۆڕین
1.1
- Added smooth scrolling JavaScript
- Replaced
strip_tags()withwp_strip_all_tags() - Cleaned code for better WordPress compliance
1.0
- Initial release – auto TOC based on heading tags

