HM TOC WP Registry grade D+. High-severity findings · 2 findingsWP RegistryHigh-severity findings · 2 findingsOpen the reportD+
WordPress plugin that adds anchors to headings in post content and generates table of contents from headings.
★ 4stars
4.7kcomposer installs
1.1.7latest · 1 year ago
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/humanmade/hm-table-of-contents-plugin/archive/refs/heads/main.zipOn Packagist as humanmade/hm-toc:
composer require humanmade/hm-tocNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
HM Table of Contents
WordPress plugin with the following features:
- Generate table of contents that lists all headings (Ordered hierachically) in post content.
- Automatically add anchors links after all headings in post content.
- Block to add these to pages and template.
- Adds 'active' class to the current heading in the table of contents.
FAQ
I don't want to automatically add anchor links to headings.
You can remove the filter that adds these with the following snippet. Doing it like this means that the plugin will still ensures headings all have IDs.
// Don't append an anchor link to each heading.
add_filter( 'hm_toc.contents.anchor_html', '__return_empty_string' );Releases
9 releases.
Tag
Published
1.1.7
latest
Nov 27, 2024 1 year ago
Nov 25, 2024 1 year ago
Sep 27, 2024 2 years ago
Sep 27, 2024 2 years ago
Sep 23, 2024 2 years ago
Sep 20, 2024 2 years ago
Sep 20, 2024 2 years ago
Sep 13, 2024 2 years ago
Sep 6, 2024 2 years ago
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.