A Useful WordPress Plugin For Those Who Write Long-form Content

Developed by George Stephanis, Add IDs to Header Tags is a WordPress plugin that adds an `id` attribute to header tags in posts. This enables users to deep-link into your content. This is especially helpful to those who consistently publish medium to long form articles.

Adding ID Tag To Headers

ID Tags are added to headers within content as long as they’re not already in use. The plugin contains no settings to configure, so it’s only a matter of installing it and using header tags within content. A future version of this plugin might add the option to remove the link. Also, George specified that this plugin does not make any changes to the database content.

It’s just a filter on the_content — no change of the db content. The anchor is optional, it adds an ID to the h# tag.

This plugin is incredibly simple to use. Since WPTavern routinely publishes long form content, the linked header tags will come in handy. A side benefit to this plugin is that deep links are added to content already published. This means you won’t need to go through your content history and add any sort of shortcodes.

There are 3 comments

Comments are closed.