Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Add an excerpt more string to manually created excerpts.
- */
- function my_memberlite_manual_excerpt_more( $excerpt ) {
- $excerpt_more = '';
- if ( has_excerpt() ) {
- $excerpt_more = ' <a href="' . get_permalink( ) . '" rel="nofollow">(more...)</a></a>';
- }
- return $excerpt . $excerpt_more;
- }
- add_filter( 'get_the_excerpt', 'my_memberlite_manual_excerpt_more' );
Add Comment
Please, Sign In to add comment