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.
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:
If you'd like to link to the post (remember it's not live yet) you can do so by calling:
You can specify the number of words returned using the option:
If you would like to load the content directly, skipping the entered excerpt:
By default the plugin includes a ... after the excerpt, you can remove it or change it by altering:
If you would like to return whole sentences rather than words, you can control the number of sentences to return:
Finally, if you'd like to copy the results into a variable you can return the results as follows:
Requires: 2.0.0 or higher
Compatible up to: 3.5.2
Last Updated: 2013-7-6
0 of 1 support threads in the last two months have been resolved.
Got something to say? Need help?