Greg’s Plugins for WordPress

Plugins for WordPress

Portfolio of Plugins for Adoption!

Untexturize by Class

Protect the contents of a div or other tag with a specific class from being texturized, while still enabling WordPress auto paragraphs.

What this Plugin Makes Possible

WordPress has some great and powerful built-in routines for texturizing text and for automatically inserting paragraph markers, and most of us wouldn’t want to live without them. However, those same routines can really get in the way on those occasions when you’d like to include some untexturized text within an article, but you’d still like to take advantage of WordPress’s typographical prowess for the remainder of the article.

Compounding the problem, the priority with which the WordPress core functions wpautop() and wptexturize() are run makes it tricky to benefit from just one without having to accept the other.

This plugin makes all that very straightforward by enabling authors to wrap a chunk of text in a tag with a specific class and be assured that whatever they’ve wrapped won’t be texturized, while everything else in the article will be handled normally. At the moment, the plugin class defines a specific classname and a specific tag, but these could be replaced with anything suitable, or the plugin could be extended with a simple admin page to make the tag and classname user configurable.

How it Works

This plugin communicates with WordPress primarily by tapping into the following:

  • the_content

Configuration: None

No administrator time is required — just plug and play!