Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 112476

ghanshyam.nitsan on "Read more link in 3.5"

$
0
0

I used in my project for read more link:
Code in function.php
function twentytwelve_excerpt_length( $length ) {
return 20;
}
add_filter( 'excerpt_length', 'twentytwelve_excerpt_length' );

function new_excerpt_more($more) {
global $post;
return 'ID) . '"> Read more...';
}
add_filter('excerpt_more', 'new_excerpt_more');

use: the_excerpt();


Viewing all articles
Browse latest Browse all 112476

Trending Articles