Snippets repository for WordPress developpers

Browse
// into functions.php
// Will change 'Continue reading' to 'Read more'
function sp_change_more_text( $more ){
  global $post;
  return '… <a class="read-more" href="'.get_permalink($post->ID).'" title="'.esc_attr(get_the_title($post->ID)).'">'.'Read more »'.'</a>';
}
add_filter('excerpt_more', 'sp_changet_more_text');

Warning: Trying to access array offset on null in /home/clients/7f7a8d8eb6e40c50d3548b06c548734d/web/wp-includes/class-wp-query.php on line 3766

Categories

Tags