June 4th, 2004

WordPress Plugin: LDS Scripturize

Here’s a WordPress Plugin I created to take any scripture in your post and hyperlink it to the LDS.org scripture reference. It seems to be a little finicky so use with caution. It’s easy to install by adding it to your plugins folder and then activating.

The plugin turns John 1:3

into John 1:3.

You can also hyperlink a series of verses like 1 Nephi 1:7-10

into 1 Nephi 1:7-10.

I can’t seem to get D&C references to work but I’m trying. The download location is here

2 Responses to “WordPress Plugin: LDS Scripturize”

  1. dp says:

    Great work John. I’d hoped for something like this for sometime. MT users have had the LDS ScriptureLinker at http://mt-plugins.org/archives/entry/scripturelinker.php, but it’s great to finally have a Wordpress plugin to do the same job. I guess I’ll have to stop procrastinating and upgrade to WPv1.2.

    I had anticipated that this function would parse the reference into the typical url format:
    http://scriptures.lds.org/1_ne/3/7-10

    however your query string format of
    http://scriptures.lds.org/query?words=1+Nephi+1%3A7-10
    returns what I think is a better page, especially with the inclusion of the footnotes.

    Thanks again.
    If you don’t get it going first, I’d be happy to have a look at the code for the D&C and see if I can help to figure it out when I have some time.

  2. John says:

    Thanks DP. I just uploaded a cleaner version. I removed some excess code but I’m afraid the D&C is going to be beyond my abilities. There are so many complicated regex that I’m at a loss. Maybe you can see what you can do.