Title: LH Paragraph Ids
Author: shawfactor
Published: <strong>Mawrth 19, 2015</strong>
Last modified: Awst 8, 2022

---

Search plugins

![](https://ps.w.org/lh-paragraph-ids/assets/banner-772x250.jpg?rev=1340548)

Nid yw’r ategyn hwn **wedi cael ei ddiweddaru ers 3 ryddhad mawr**. Efallai nad 
yw’n cael ei gynnal bellach ac efallai bod materion cydnawsedd wrth gael ei ddefnyddio
gyda fersiynau mwy diweddar o WordPress.

![](https://ps.w.org/lh-paragraph-ids/assets/icon-128x128.png?rev=1115825)

# LH Paragraph Ids

 Gan [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Llwytho i lawr](https://downloads.wordpress.org/plugin/lh-paragraph-ids.zip)

 * [Details](https://cy.wordpress.org/plugins/lh-paragraph-ids/#description)
 * [Reviews](https://cy.wordpress.org/plugins/lh-paragraph-ids/#reviews)
 *  [Installation](https://cy.wordpress.org/plugins/lh-paragraph-ids/#installation)
 * [Development](https://cy.wordpress.org/plugins/lh-paragraph-ids/#developers)

 [Cefnogaeth](https://wordpress.org/support/plugin/lh-paragraph-ids/)

## Disgrifiad

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](https://wordpress.org/support/view/plugin-reviews/lh-paragraph-ids/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-paragraph-ids/).**

## Gosod

Install using WordPress:

 1. Log in and go to _Plugins_ and click on _Add New_.
 2. Search for _LH Paragraph Ids_ and hit the _Install Now_ link in the results. WordPress
    will install it.
 3. From the Plugin Management page in WordPress, activate the _Lh Paragraph Ids_ plugin.
 4. That is it , the plugin has no settings (it just works), but has filters to modify
    its behaviour, see faq.

## Cwestiynau Cyffredin

### How do I enable automatic paragraph links?

By default, automtic paragraph links are turned off, they can be turned on by a 
filter like this:

add_filter(‘lh_paragraph_ids_link_enabled’, function(){
 //Do something with the
content return true; });

### What happens if I deactiavte this plugin?

The plugin does not add anything to the content stored in the database, all attributes
are added dynamically by the plugin. So you can safely deactivate the plugion if
you no longer want the functionality it enables

### Can you give me some examples of sites running this plugin?

The [LocalHero project website](https://lhero.org) and the [Melbourne touch rugby association](https://princesparktouch.com)
I founded both run on the same multisite that uses this plugin.

### What is something does not work?

LH Paragraph Ids, and all [LocalHero](https://lhero.org) plugins are made to WordPress
standards. Therefore they should work with all well coded plugins and themes. However
not all plugins and themes are well coded (and this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfirteen, twentysixteen etc.

If the problem persists please leave a post in the support forum: [https://wordpress.org/support/plugin/lh-paragraph-ids/](https://wordpress.org/support/plugin/lh-paragraph-ids/).
I look there regularly and resolve most queries.

### What if I need a feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/).

## Adolygiadau

There are no reviews for this plugin.

## Contributors & Developers

“LH Paragraph Ids” is open source software. The following people have contributed
to this plugin.

Cyfranwyr

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

[Translate “LH Paragraph Ids” into your language.](https://translate.wordpress.org/projects/wp-plugins/lh-paragraph-ids)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/lh-paragraph-ids/),
check out the [SVN repository](https://plugins.svn.wordpress.org/lh-paragraph-ids/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/lh-paragraph-ids/)
by [RSS](https://plugins.trac.wordpress.org/log/lh-paragraph-ids/?limit=100&mode=stop_on_copy&format=rss).

## Cofnod Newid

**0.01 July 29, 2014**
 Initial release.

**0.02 April 29, 2015**
 Only filter content on front end

**1.00 July 13, 2015**
 Object oriented code

**2.00 August 07, 2022**
 Removed settings, improved and simplified

## Meta

 *  Version **2.00**
 *  Last updated **4 blynedd yn ôl**
 *  Active installations **10+**
 *  WordPress version ** 5.2 neu uwch **
 *  Tested up to **6.0.12**
 *  Language
 * [English (US)](https://wordpress.org/plugins/lh-paragraph-ids/)
 * Tags
 * [fragment](https://cy.wordpress.org/plugins/tags/fragment/)[html](https://cy.wordpress.org/plugins/tags/html/)
   [HTML5](https://cy.wordpress.org/plugins/tags/html5/)[links](https://cy.wordpress.org/plugins/tags/links/)
   [paragraphs](https://cy.wordpress.org/plugins/tags/paragraphs/)
 *  [Advanced View](https://cy.wordpress.org/plugins/lh-paragraph-ids/advanced/)

## Graddau

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/lh-paragraph-ids/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lh-paragraph-ids/reviews/)

## Cyfranwyr

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Cefnogaeth

Rhywbeth i’w ddweud? Angen help?

 [Gweld y fforwm cefnogi](https://wordpress.org/support/plugin/lh-paragraph-ids/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](http://lhero.org/portfolio/lh-paragraph-ids/)