If I wanted to edit how the actual excerpt is outputted in wordpress.. not the template but the actual html tags the are included.. what core file would I find this in.. (I am not talking about the theme file but the actual wordpress file).
If I wanted to edit how the actual excerpt is outputted in wordpress.. not the template but the actual html tags the are included.. what core file would I find this in.. (I am not talking about the theme file but the actual wordpress file).
MAKE BACKUPS FIRST:
/wp-includes/functions-formatting.php
Locate:
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, '[...]');
$text = implode(' ', $words);
}
Change:
if (count($words) > $excerpt_length) {
array_pop($words);
array_push($words, '... <a href="' . get_permalink() . '">more</a>»');
$text = implode(' ', $words);
}
the '[...]' party -- in this example changed to the '... <a href="' . get_permalink() . '">more</a>»' part -- is the part you will need to modify to what you would like it to say.
This topic has been closed to new replies.