How to filter a WordPress theme’s ‘more link’ text


/ Published in: PHP
Save to your folder(s)

Add to functions.php file.


Copy this code and paste it in your HTML
  1. <?php
  2.  
  3. add_filter( 'the_content_more_link', 'my_more_link', 10, 2 );
  4.  
  5. function my_more_link( $more_link, $more_link_text ) {
  6. return str_replace( $more_link_text, 'Continue reading &rarr;', $more_link );
  7. }
  8.  
  9. ?>

URL: http://justintadlock.com/archives/2009/07/01/how-to-filter-a-wordpress-themes-more-link-text

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.