Skip to content

Instantly share code, notes, and snippets.

@quangbahoa
Created June 16, 2012 16:41
Show Gist options
  • Save quangbahoa/2941894 to your computer and use it in GitHub Desktop.
Save quangbahoa/2941894 to your computer and use it in GitHub Desktop.
wordpress.com.vn
function new_excerpt_more($more) {
return '<a href="'. get_permalink($post->ID) . '">' . ' [Read More]' . '</a>';
}
add_filter('excerpt_more', 'new_excerpt_more');
function new_excerpt_length($length) {
return 100;
}
add_filter('excerpt_length', 'new_excerpt_length');
<?php the_excerpt(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment