Posted By

paul0078 on 04/15/12


Tagged

php wordpress excerpt more


Versions (?)

Function to create a better excerpt - read more


 / Published in: PHP
 

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

Report this snippet  

You need to login to post a comment.