Twenty Eleven
Read more link does not displayed when there is no excerpt (2 posts)

  1. whoaloic
    Posted 3 years ago #

    I have posts dislayed in a page (I use Category Pages plugin).
    Some of them have an excerpt, other displayed only the 20 first words of the content (I change twentyeleven_excerpt_length function in the function.php file).

    function twentyeleven_excerpt_length( $length ) {
    	return 20;

    My problem is that when I have a post which have less than 20 words and have no excerpt, the "Read more" link is not displayed.

    Please somebody have a solution to display the "Read more" link whatever the size of the post or whether the excerpt is filled or not.

    I've looked on that function in function.php file, but did not manage to solve my issue!

    function twentyeleven_custom_excerpt_more( $output ) {
    	if ( has_excerpt() && ! is_attachment() ) {
    		$output .= twentyeleven_continue_reading_link();
    	return $output;
    Any help would be appreciated!
    add_filter( 'get_the_excerpt', 'twentyeleven_custom_excerpt_more' );


  2. whoaloic
    Posted 3 years ago #

    Did anyone meet the same issue?

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic