×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Eric De Kock
Added: Mar 27, 2017 1:38 AM
Views: 2278
Tags: no tags
  1. function new_excerpt_more( $more ) {
  2.         return ' <a class="read-more" href="'. get_permalink( get_the_ID() ) . '">' . __('Read More', 'your-text-domain') . '</a>';
  3. }
  4. add_filter( 'excerpt_more', 'new_excerpt_more' );