Return Excerpt

Plugin Banner

Return Excerpt

by ykawato

Download
Description

Returns the excerpt outside the loop.
Usage:

where $attr is an array with any of these keys:

  • num_words: number of words
  • more: replacement for […]
  • length: number of letters to display, userful for multibyte string

Example:
’55’, ‘more’=>’.. Read more’));?>

  1. Upload plugin-name.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. return_excerpt($post_id, $attr); returns excerpt.

0.2

  • Added description
  • Bug fixes

0.1

  • First release
Back to top