• 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).

Viewing 1 replies (of 1 total)
  • 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>&raquo;');
    $text = implode(' ', $words);
    }

    the '[...]' party — in this example changed to the '... <a href="' . get_permalink() . '">more</a>&raquo;' part — is the part you will need to modify to what you would like it to say.

Viewing 1 replies (of 1 total)
  • The topic ‘Edit the excerpt in wordpress..’ is closed to new replies.