WP Manifestindependent plugin directory
manifest / content / auto-header-ids

Automatic Header IDs GitLab

A Wordpress plugin that automatically generates IDs for header tags

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitLab with WP-CLI:

wp plugin install https://gitlab.com/simon_w/auto-header-ids/-/archive/main/auto-header-ids-main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Automatically generate IDs for header tags in your page content.

Description

Being able to link directly to sections within your content requires those sections to have IDs. Manually creating IDs, especially in longer pages and posts, can get tedious. This plugin will automatically generate IDs for you.

It works by looking at any h1–h6 tags and, if the tag does not already have an ID, generating one from the content of the tag.

As long as you're using the_content() or the wp:post-content block, headers will automatically receive IDs once the plugin is installed and activated.

Support is available by creating an issue in Gitlab.