-1

I want to display: content limit should be 0 and read more link also appear in Genesis. This is my code:

add_filter ( 'get_the_content_more_link', 'custom_read_more_link' );
function custom_read_more_link() {
    return '... <a class="more-link" href="' . get_permalink () . '">Read More</a>';
}

If any one know the answer, please help. Thanks in advance.

hemnath mouli
  • 2,617
  • 2
  • 17
  • 35
Sanjeev kumar
  • 65
  • 2
  • 7

1 Answers1

0

Go to Dashboard > Genesis > Content Archive and set Display option to Entry excerpts

Copy the following code to functions.php

//* Modify the length of post excerpts
add_filter( 'excerpt_length', 'sp_excerpt_length' );
function sp_excerpt_length( $length ) {
    return 0; // pull first 0 words
}
Imsa
  • 1,105
  • 2
  • 17
  • 39
  • what else do you have in your functions.php? you don't need `custom_read_more_link' in functions.php any more. – Imsa Apr 20 '16 at 17:05