Posted By

howardpanton on 04/12/10


Tagged

wordpress


Versions (?)

Add a read more link in wordpress


 / Published in: PHP
 

Add read more link for wordpress

  1. function new_excerpt_more($post) {
  2. return '<a class="more" href="'. get_permalink($post->ID) . '">' . 'Read the Rest...' . '</a>';
  3. }
  4. add_filter('excerpt_more', 'new_excerpt_more');

Report this snippet  

You need to login to post a comment.