Posted By

Xtraboy on 02/25/10


Tagged

php link wordpress text more


Versions (?)

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


 / Published in: PHP
 

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

Add to functions.php file.

  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. ?>

Report this snippet  

You need to login to post a comment.