Custom excerpt length


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



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.