Better the_excerpt


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



Copy this code and paste it in your HTML
  1. function new_excerpt_more($more) {
  2. return ' <a href="'.get_permalink($post->ID).'"> Les resten av '.get_the_title().'</a>';
  3. }
  4. add_filter('excerpt_more', 'new_excerpt_more');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.