Shorten excerpt
git-svn-id: http://svn.automattic.com/wordpress/trunk@2262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4ebdf7232c
commit
c43b3244bd
|
@ -123,7 +123,7 @@ function get_the_excerpt($fakeit = true) {
|
||||||
$output = $post->post_content;
|
$output = $post->post_content;
|
||||||
$output = strip_tags($output);
|
$output = strip_tags($output);
|
||||||
$blah = explode(' ', $output);
|
$blah = explode(' ', $output);
|
||||||
$excerpt_length = 120;
|
$excerpt_length = 70;
|
||||||
if (count($blah) > $excerpt_length) {
|
if (count($blah) > $excerpt_length) {
|
||||||
$k = $excerpt_length;
|
$k = $excerpt_length;
|
||||||
$use_dotdotdot = 1;
|
$use_dotdotdot = 1;
|
||||||
|
|
Loading…
Reference in New Issue