Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function twentytwelvechild_custom_excerpt_length( $length ) {
- return 100;
- }
- add_filter( 'excerpt_length', 'twentytwelvechild_custom_excerpt_length', 100 );
- function twentytwelvechild_new_excerpt_more($more) {
- global $post;
- return ' <a href="'. get_permalink($post->ID) . '">Read the Rest...</a>';
- }
- add_filter('excerpt_more', 'twentytwelvechild_new_excerpt_more');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement