Posted By

paul0078 on 04/15/12


Tagged

php wordpress excerpt


Versions (?)

Function to change the default length of excerpts


 / Published in: PHP
 

  1. function new_excerpt_length($length) {
  2. return 40;
  3. }
  4. add_filter('excerpt_length', 'new_excerpt_length');

Report this snippet  

You need to login to post a comment.