This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Simple First Sentence Highlighter

Description

  • NB: This plugin is no longer supported.

Adds a new Template Tag fp_firstsentence( $str , $style , $br ), which highlights the first sentence in a string/content ($str) with a specified CSS style ($style) – for example: “font-size:14.5px;font-weight:bold;color:#990000;”.

NB: By default, $br = 1, meaning that the function will preserve line/paragraph breaks in the content. You can optionally specify $br = 0 to have the function echo a block of text with no breaks.

Installation

  1. Upload fp_firstsentence.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use <?php fp_firstsentence( $str , $style , $br ); ?> in your theme templates.

NB: The $style must be valid CSS, for example “font-size:14.5px;font-weight:bold;color:#990000;” or anything that you may have used in to style the text.

$br is optional, and only needed if you are specifying false / 0.

FAQ

N/A

Contributors & Developers

“Simple First Sentence Highlighter” is open source software. The following people have contributed to this plugin.

Changelog

1.1

  • No longer supported.

1.0

  • Released as standalone plugin.

0.5

  • Added $br option to echo text with preserved paragraph breaks.