Home Forums Teddy WordPress Theme excerpt problem Reply To: excerpt problem

#207

BWSM
Keymaster

Hi

Plz replace the line401-407 in functions.php:

function twentyten_continue_reading_link() {
return '';
}
function twentyten_auto_excerpt_more( $more ) {
return ' …' . twentyten_continue_reading_link();
}
add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' );

as:

function new_excerpt_more($more) {
global $post;
return '<p><a href='. get_permalink($post-ID) . '>Read the Rest...' . '</a></p>';
}
add_filter('excerpt_more', 'new_excerpt_more');
  • This reply was modified 4 years, 3 months ago by  BWSM.
  • This reply was modified 4 years, 3 months ago by  BWSM.
  • This reply was modified 4 years, 3 months ago by  BWSM.
  • This reply was modified 4 years, 3 months ago by  BWSM.