Skip to content

Instantly share code, notes, and snippets.

@someguy9
Created March 16, 2020 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save someguy9/6db97ccbabea3c2b903d18ff5cb28eab to your computer and use it in GitHub Desktop.
Save someguy9/6db97ccbabea3c2b903d18ff5cb28eab to your computer and use it in GitHub Desktop.
<?php
// Changing excerpt more
function smartwp_change_excerpt_more_text( $more ){
global $post;
return '&hellip; <a class="read-more" href="'.get_permalink($post->ID).'" title="'.esc_attr(get_the_title($post->ID)).'">'.'Read More &raquo;'.'</a>';
}
add_filter('excerpt_more', 'smartwp_change_excerpt_more_text');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment