Post Excerpts
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
<!-- Below is the code to modify the read more link when using the WordPress More Tag to break a post on your site: -->
//* Modify the WordPress read more link
add_filter( 'the_content_more_link', 'sp_read_more_link' );
function sp_read_more_link() {
return '<a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}
<!-- Below is the code to modify the read more link when using the Content Limit on the Content Archives section on the Genesis Settings page: -->
//* Modify the Genesis content limit read more link
add_filter( 'get_the_content_more_link', 'sp_read_more_link' );
function sp_read_more_link() {
return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>';
}
<!-- Below is the code to modify the length of the post excerpts: -->
//* Modify the length of post excerpts
add_filter( 'excerpt_length', 'sp_excerpt_length' );
function sp_excerpt_length( $length ) {
return 50; // pull first 50 words
}