Need help removing […] after excerpt

This has to work, Im using it in several projects:

add_filter( 'excerpt_more', 'my_excerpt_more' );

function my_excerpt_more( $more ) {

    return '';
}

Just copy-paste it to your functions.php.


Little bonus snippet that you might need:

add_filter( 'excerpt_length', 'my_excerpt_length' );

function my_excerpt_length( $length ) {

    return 50;
}

This means that excerpt is 50 words long. Just modify the number to get different length.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)