The Get Better Excerpt plugin works almost identical to the built in get_the_excerpt() and the_excerpt() functions except it returns whole words inste
Insert the following code into your WordPress theme files:
Without passing any parameters, the plugin will return ten results or fewer depending on how many posts you have.
thisismyurl_get_better_excerpt();
By default the plugin wraps your code in list item (<li>) tags but you can specify how to format the results using the following code:
thisismyurl_get_better_excerpt('before=<p>&after=</p>');
If you'd like to link to the post (remember it's not live yet) you can do so by calling:
thisismyurl_get_better_excerpt('link=true');
You can specify the number of words returned using the option:
thisismyurl_get_better_excerpt('words=20');
If you would like to load the content directly, skipping the entered excerpt:
thisismyurl_get_better_excerpt('skipexcerpt=true');
By default the plugin includes a ... after the excerpt, you can remove it or change it by altering:
thisismyurl_get_better_excerpt('trail= ...');
If you would like to return whole sentences rather than words, you can control the number of sentences to return:
thisismyurl_get_better_excerpt('sentence=1');
Finally, if you'd like to copy the results into a variable you can return the results as follows:
thisismyurl_get_better_excerpt('show=false');
Requires: 2.0.0 or higher
Compatible up to: 3.3.2
Last Updated: 2012-5-16
Downloads: 3,559
Got something to say? Need help?