Home / excerpt / Custom excerpt length
  • How to Custom excerpt length

    no thumbnail sorry: Custom excerpt length

    Adding this PHP code to the functions.php file of your wordpress theme will allow you to set the length of your excerpt rather then the default 55 character limit.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    function excerptLength($length) {
    	return 100;
    }
    add_filter('excerpt_length', 'excerptLength');
    

    ( WordPress codex functions, hooks, in this snippet. )

    excerpt_length, add_filter,