Posted By

santamartastudio on 11/11/13


Tagged

wordpress


Versions (?)

Custom excerpt length


 / Published in: PHP
 

  1. // Custom excerpt length
  2. function custom_excerpt_length( $length ) {
  3. return 50;
  4. }
  5. add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
  6.  

Report this snippet  

You need to login to post a comment.