Last active
March 29, 2017 07:19
-
-
Save jamiemarsland/c82f1489ce572d614cf206deb87f854a to your computer and use it in GitHub Desktop.
Add a read more link to the excerpt in blog posts when using pootle pagebuilder pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'get_the_excerpt', function( $excerpt ) { | |
return | |
substr( $excerpt, 0, 230 ) . | |
' <a class="more" href="' . get_the_permalink() . '">More</a>'; | |
}, 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment