LH Paragraph Ids

plugin banner

LH Paragraph Level IDs plugin adds an ‘id’ attribute to each paragraph tag in a blog post, giving the author and readers additional functionality.

So for example, becomes .

There is also an optional feature to add a link to the paragraph at the end of the post, like this: #. This is done via javascipt so it doesn't interfere with page text.

These additions allow anyone to link directly to that paragraph in the post. This is useful for long tracts of text and is also useful for rdf and semantics (in that these technologies often require identification of parts of a page).

Author:Peter Shaw (profile at wordpress.org)
WordPress version required:5.2
WordPress version tested:6.0.1
Plugin version:2.00
Added to WordPress repository:19-03-2015
Last updated:08-08-2022
Rating, %:0
Rated by:0
Plugin URI:https://lhero.org/portfolio/lh-paragraph-ids/
Total downloads:1 272
Active installs:10+
plugin download
Click to start download

LH Paragraph Level IDs plugin adds an ‘id’ attribute to each paragraph tag in a blog post, giving the author and readers additional functionality.

So for example, <p> becomes <p id="lh_element_id-p-23463-3">.

Note if an id for an element already exists, it is kept. Also note this is done dynamically so ar no time is the content stored in the database changed.

There is also an optional feature to add a link to the paragraph symbol at the end of the post, like this. ¶ See faq for enabling this.

These additions allow anyone to link directly to that paragraph in the post. This is useful for long tracts of text and is also useful for rdf and semantics (in that these technologies often require identification of parts of a page).

Requires wp_body_open

Note this plugin requires wordpress 5.2 and for your theme to support the wp_body_open hook (most good themes do).

Like this plugin? Please consider leaving a 5-star review.

Love this plugin or want to help the LocalHero Project? Please consider making a donation.


FAQ
ChangeLog